/* ============================================================
   Pre-Form Global shared stylesheet
   Brand: navy #002c73 · grey #6e7172 · white
   ============================================================ */

:root {
  --navy: #002c73;
  --navy-dark: #001f52;
  --navy-tint: #eef2f9;
  --blue-mid: #3c6496;
  --grey: #6e7172;
  --grey-light: #a8aaab;
  --grey-bg: #f4f5f6;
  --white: #ffffff;
  --ink: #23272b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 44, 115, 0.10);
  --font-head: "Baloo 2", "Nunito Sans", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

a, button { -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; display: block; }

a { color: var(--navy); }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e6e8ea;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 54px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }

.main-nav a {
  text-decoration: none;
  color: var(--grey);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}

.main-nav a:hover { color: var(--navy); }
.main-nav a.active { color: var(--navy); border-bottom-color: var(--navy); }

/* The nav link color must not override the quote button's white text */
.main-nav a.btn-primary,
.main-nav a.btn-primary:hover { color: var(--white); }

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 28px;
  transition: transform .15s, box-shadow .15s, background .2s, color .2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); }

.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-light { background: var(--white); color: var(--navy); }

/* Mobile nav toggle (hamburger morphs into an X when open) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Eyebrow label (echoes the ruled G L O B A L logo mark) ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  margin-bottom: 14px;
  white-space: nowrap;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  height: 3px;
  width: 44px;
  background: var(--navy);
  border-radius: 2px;
  flex: none;
}

.eyebrow.left { justify-content: flex-start; }
.eyebrow.left::after { display: none; }
.eyebrow.center { justify-content: center; }
.eyebrow.on-dark { color: var(--white); }
.eyebrow.on-dark::before, .eyebrow.on-dark::after { background: var(--white); }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

.lede { font-size: 1.15rem; color: var(--grey); max-width: 46em; }

.text-grey { color: var(--grey); }

section { padding: 84px 0; }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin-top: 12px; color: var(--grey); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, var(--white) 0%, var(--white) 55%, var(--navy-tint) 100%);
  padding: 96px 0 110px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero h1 span { color: var(--grey); }

.hero p { margin: 22px 0 34px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-mark { display: flex; justify-content: center; }
.hero-mark svg { width: min(340px, 80%); height: auto; }

/* ---------- Stats strip ---------- */

.stats {
  background: var(--navy);
  padding: 44px 0;
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.stat span {
  color: var(--grey-light);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid #e6e8ea;
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--navy);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--navy-tint);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card .icon svg { width: 28px; height: 28px; }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--grey); font-size: 15.5px; }

.bg-grey { background: var(--grey-bg); }

/* ---------- Split feature section ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split h2 { margin-bottom: 18px; }
.split p + p { margin-top: 14px; }
.split .actions { margin-top: 28px; }

.check-list { list-style: none; margin-top: 22px; }

.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 600;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--navy);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* Technical drawing panel (line art from the Pre-Form formwork manual) */
.drawing-panel {
  background: var(--white);
  border: 1px solid #e6e8ea;
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.drawing-panel img {
  max-height: 420px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.spec-list { list-style: none; margin-top: 20px; }

.spec-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--grey);
  font-size: 15.5px;
}

.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--navy);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.spec-list li b { color: var(--ink); }

/* Standards strip */
.standards {
  background: var(--navy);
  padding: 30px 0;
  text-align: center;
}

.standards .label {
  color: var(--grey-light);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.standards .codes {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.standards .codes span { color: var(--grey-light); padding: 0 10px; }

/* Striped hexagon panel (echoes the logo mark) */
.hex-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
  border-radius: var(--radius);
  background: var(--navy-tint);
  overflow: hidden;
}
.hex-panel svg { width: 70%; height: auto; }

/* ---------- Market pills ---------- */

.pill-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.pill {
  background: var(--white);
  border: 2px solid var(--navy);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 8px 20px;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius);
  padding: 64px 48px;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: #c9d4e8; max-width: 40em; margin: 0 auto 30px; }

/* ---------- Solution detail blocks ---------- */

.solution-block {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid #e6e8ea;
}

.solution-block:last-child { border-bottom: 0; }

.solution-block .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--white);
  background: var(--navy);
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.solution-block h3 { font-size: 1.45rem; margin-bottom: 8px; }
.solution-block p { color: var(--grey); }
.solution-block .tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-mid);
  background: var(--navy-tint);
  border-radius: 6px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: linear-gradient(115deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 72px 0;
}

.page-hero h1 { color: var(--white); }
.page-hero p { color: #c9d4e8; margin-top: 16px; max-width: 44em; }

/* ---------- Values / about ---------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 8px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-card {
  background: var(--grey-bg);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-card h3 { margin-bottom: 6px; }
.contact-card p { color: var(--grey); margin-bottom: 22px; }

.contact-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-line svg { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.contact-line b { display: block; font-family: var(--font-head); color: var(--navy); }
.contact-line a { text-decoration: none; font-weight: 700; }

form label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  margin: 18px 0 6px;
}

form input, form select, form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 16px;
  border: 1.5px solid #d5d8db;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}

form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 44, 115, 0.12);
}

form button { margin-top: 26px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: #c9d4e8;
  padding: 60px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
}
.footer-brand span { color: var(--grey-light); }

.footer-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  letter-spacing: 0.4em;
  font-size: 12px;
  color: #c9d4e8;
  text-transform: uppercase;
  margin-top: 2px;
}
.footer-tag::before, .footer-tag::after {
  content: "";
  width: 26px;
  height: 2px;
  background: #c9d4e8;
}

.site-footer h4 {
  color: var(--white);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #c9d4e8; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer p { font-size: 15px; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #c9d4e8;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
}

.social-link:hover { color: var(--white); }
.social-link svg { width: 22px; height: 22px; flex: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 14px;
  color: var(--grey-light);
}

/* ---------- Animations ---------- */

/* Header shadow appears on scroll */
.site-header { transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 44, 115, 0.10); }

/* Hero entrance */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

@keyframes mark-in {
  from { opacity: 0; transform: scale(0.85) rotate(-10deg); }
  to   { opacity: 1; transform: none; }
}

@keyframes drift {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-14px) rotate(2.5deg); }
}

.hero .eyebrow,
.hero h1,
.hero .lede,
.hero-actions,
.page-hero .eyebrow,
.page-hero h1,
.page-hero p {
  animation: rise-in .8s cubic-bezier(.16, 1, .3, 1) both;
}

.hero h1, .page-hero h1 { animation-delay: .1s; }
.hero .lede, .page-hero p { animation-delay: .22s; }
.hero-actions { animation-delay: .34s; }

.hero-mark img {
  animation:
    mark-in 1s cubic-bezier(.16, 1, .3, 1) both,
    drift 5.5s ease-in-out 1s infinite alternate;
}

/* Other decorative hex marks drift gently too */
.hex-panel img[src$="hex-mark.svg"] {
  animation: drift 6s ease-in-out infinite alternate;
}

/* Scroll reveal (elements tagged by js/main.js).
   One-shot animation with backwards fill so hover transitions on cards
   stay snappy once the reveal has played. */
.reveal { opacity: 0; }

.reveal.in {
  opacity: 1;
  animation: rise-in .7s cubic-bezier(.16, 1, .3, 1) var(--d, 0s) backwards;
}

/* Animated underline sweep on nav links */
.main-nav a:not(.btn) {
  background: linear-gradient(var(--navy), var(--navy)) left bottom / 0 3px no-repeat;
  border-bottom: none;
  padding-bottom: 9px;
  transition: color .2s, background-size .3s ease;
}
.main-nav a:not(.btn):hover,
.main-nav a:not(.btn).active { background-size: 100% 3px; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero .lede, .hero-actions,
  .page-hero .eyebrow, .page-hero h1, .page-hero p,
  .hero-mark img, .hex-panel img[src$="hex-mark.svg"] {
    animation: none;
  }
  .reveal, .reveal.in { opacity: 1; animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hero .container,
  .split,
  .contact-grid { grid-template-columns: 1fr; }

  .hero { padding: 48px 0 64px; }
  .hero-mark { order: -1; }
  .hero-mark img { width: min(200px, 55%); }

  /* Content first on stacked feature sections; visual panels follow */
  .split .hex-panel { order: 2; min-height: 240px; }
  .split .hex-panel img[src$="hex-mark.svg"] { width: 45% !important; max-width: 200px; }

  .card-grid, .value-grid { grid-template-columns: 1fr 1fr; gap: 18px; }

  .stats { padding: 36px 0; }
  .stats .container { grid-template-columns: 1fr 1fr; gap: 28px 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Slide-down mobile menu with full-width tap targets */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid #e6e8ea;
    box-shadow: 0 18px 30px rgba(0, 44, 115, 0.12);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 4vw 20px;
    gap: 0;
  }
  .main-nav.open { display: flex; animation: nav-drop .25s ease both; }
  .nav-toggle { display: block; }

  .main-nav a:not(.btn) {
    display: block;
    width: 100%;
    padding: 15px 4px;
    font-size: 16px;
    border-bottom: 1px solid #eef0f2;
    background: none;
  }
  .main-nav a:not(.btn).active { color: var(--navy); }
  .main-nav a.btn {
    width: 100%;
    text-align: center;
    margin-top: 16px;
  }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .container { width: 90%; }

  .brand img { height: 42px; }

  /* Keep the letter-spaced eyebrows from overflowing narrow screens */
  .eyebrow { font-size: 12px; letter-spacing: 0.28em; gap: 10px; white-space: normal; }
  .eyebrow::before, .eyebrow::after { width: 22px; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }
  .lede { font-size: 1.05rem; }

  .hero { padding: 36px 0 52px; }
  .hero p { margin: 18px 0 26px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .stat b { font-size: 1.9rem; }
  .stat span { font-size: 12.5px; }

  .card-grid, .value-grid { grid-template-columns: 1fr; }
  .card { padding: 26px 22px; }

  .page-hero { padding: 52px 0; }

  .cta-banner { padding: 44px 22px; }
  .cta-banner .btn { width: 100%; }

  .solution-block { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .solution-block .num { width: 44px; height: 44px; font-size: 1.25rem; border-radius: 11px; }

  .contact-grid { gap: 40px; }
  .contact-card { padding: 26px 22px; }
  form button { width: 100%; }

  .check-list li { font-weight: 600; }
  .pill { font-size: 13.5px; padding: 7px 16px; }

  .footer-bottom { flex-direction: column; gap: 6px; }
}
