/* Sympex Construction & Engineering — site styles
   Brand: yellow #EBA91F, charcoal #232323
   Layout values live inline in index.html; this file holds base rules,
   hover states, animation support and the mobile behaviour. */

/* fonts (self-hosted, SIL Open Font License) */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

.page {
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #232323;
  background: #ffffff;
  overflow-x: hidden;   /* fallback */
  overflow-x: clip;     /* keeps the sticky header working */
}

img { max-width: 100%; }

/* anchor targets clear the sticky header */
section[id] { scroll-margin-top: 88px; }

/* links */
a { color: #232323; transition: color .15s ease, background-color .15s ease, opacity .15s ease; }
a:hover { color: #8a6100; }
.navlinks a { text-decoration: none; }
.navlinks a:hover { color: #b07a00 !important; }
footer a:hover { color: #EBA91F !important; }
.header-cta:hover,
a[style*="clip-path"]:hover { opacity: .88; color: #1b1b1b; }

/* form */
input, select, textarea { width: 100%; border-radius: 0; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #EBA91F !important; box-shadow: 0 0 0 3px rgba(235,169,31,.25); }
button[type="submit"] { transition: background-color .15s ease; }
button[type="submit"]:hover { background: #000000 !important; }
a:focus-visible, button:focus-visible { outline: 3px solid #EBA91F; outline-offset: 3px; }

/* clients */
.clients-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(9, minmax(0, 1fr));
  border-top: 1px solid #e5e5e5; border-left: 1px solid #e5e5e5;
}
.client { display: flex; flex-direction: column; border-right: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; }
.client-logo { background: #ffffff; padding: 14px; display: flex; align-items: center; justify-content: center; }
.client-logo img { display: block; width: 100%; height: auto; }
.client-name {
  flex: 1; background: #232323; color: #ffffff; padding: 12px 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-align: center; line-height: 1.4;
  display: flex; align-items: center; justify-content: center;
}

/* mobile menu button (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 46px; height: 46px; padding: 0;
  background: #232323; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #ffffff; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-quote { display: none; }

/* ---------- animation support ----------
   .js-anim is added in <head> only when animations will run, so the page
   stays fully visible without JavaScript or with reduced motion. */
.js-anim [data-reveal],
.js-anim [data-lines],
.js-anim [data-media],
.js-anim [data-deco],
.js-anim [data-bar],
.js-anim .hero-el,
.js-anim #hero-title,
.js-anim #hero-photo,
.js-anim #hero-strip,
.js-anim header a,
.js-anim header .nav-toggle,
.js-anim .sectors span { visibility: hidden; }

html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* heading line masks: a little room so letters are not shaved while moving */
.ln-mask { padding-bottom: .08em; margin-bottom: -.08em; }
.ln { will-change: transform; }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: #EBA91F; transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}

header { transition: box-shadow .4s ease; }
header.is-scrolled { box-shadow: 0 12px 34px rgba(0, 0, 0, .09); }

/* hover lifts (switched on after an element has finished animating in) */
html:not(.js-anim) .card, html:not(.js-anim) .why-card, html:not(.js-anim) .step, html:not(.js-anim) .vm-box, html:not(.js-anim) .client,
.card.is-in, .why-card.is-in, .step.is-in, .vm-box.is-in, .client.is-in {
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(0, 0, 0, .38); }
  .why-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0, 0, 0, .09); }
  .step:hover { transform: translateY(-6px); }
  .vm-box:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0, 0, 0, .10); }
  .client:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0, 0, 0, .12); position: relative; z-index: 1; }
}

/* desktop nav underline */
@media (min-width: 961px) {
  .navlinks a { position: relative; padding: 6px 0; }
  .navlinks a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #EBA91F;
    transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  }
  .navlinks a:hover::after,
  .navlinks a[aria-current="page"]::after { transform: scaleX(1); transform-origin: 0 50%; }
}

/* buttons */
a[style*="clip-path"], button[type="submit"] { transition: opacity .25s ease, background-color .25s ease, filter .25s ease; }

/* ---------- inner pages ----------
   The home page keeps its layout inline; the inner pages (about, services,
   peb, process, clients, contact) share the classes below. */
.wrap { max-width: 1240px; margin: 0 auto; }
.sec { padding: 120px 24px; }
.sec.no-top { padding-top: 0; }
.sec--soft { background: #f5f4f0; }
.sec--dark { background: #232323; color: #ffffff; }
.stack { display: flex; flex-direction: column; gap: 56px; }
.col { display: flex; flex-direction: column; gap: 22px; }
.split { display: flex; flex-wrap: wrap; gap: 72px; align-items: center; }
.split > * { flex: 1 1 440px; min-width: 0; }

.eyebrow { display: flex; gap: 12px; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow > span:first-child { flex: none; width: 36px; height: 3px; background: #EBA91F; }
.sec--dark .eyebrow { color: #EBA91F; }
.h2, .h3, .page-hero h1, .tile h3, .timeline h3 {
  margin: 0; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase;
}
.h2 { font-weight: 800; font-size: clamp(40px, 5vw, 60px); line-height: 1; }
.h3 { font-weight: 800; font-size: 36px; line-height: 1.02; }
.lead { margin: 0; font-size: 16px; line-height: 1.8; color: #4a4a4a; }
.sec--dark .lead { color: #c9c9c9; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.sec-head > .col { gap: 18px; }
.sec-head > .lead { max-width: 440px; line-height: 1.7; }
.text-link {
  align-self: flex-start; margin-top: 8px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em;
  color: #232323; text-decoration: none; border-bottom: 3px solid #EBA91F; padding-bottom: 6px;
}

/* current page in the menu */
.navlinks a[aria-current="page"] { color: #b07a00 !important; }

/* page banner (reuses the home hero ids so the intro animation runs) */
.page-hero { position: relative; background: #232323; color: #ffffff; overflow: hidden; }
.page-hero #hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
.page-hero #hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero #hero-strip { position: absolute; top: 0; right: 0; width: 30%; height: 14px; background: #EBA91F; }
.page-hero-inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 84px 24px 92px; }
.page-hero-inner > div { max-width: 560px; display: flex; flex-direction: column; gap: 22px; }
.page-hero h1 { font-weight: 800; font-size: clamp(44px, 5vw, 72px); line-height: .98; letter-spacing: .005em; }
.page-hero p { margin: 0; font-size: 17px; line-height: 1.7; color: #d4d4d4; max-width: 500px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #EBA91F; }
.crumbs a { color: #d4d4d4; text-decoration: none; }
.crumbs a:hover { color: #ffffff; }

/* tiles */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tile { background: #f5f4f0; padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; border-top: 4px solid #EBA91F; }
.sec--soft .tile { background: #ffffff; }
.sec--dark .tile { background: #2d2d2d; }
.tile-num { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; font-size: 22px; color: #b07a00; }
.sec--dark .tile-num { color: #EBA91F; }
.tile h3 { font-weight: 700; font-size: 26px; line-height: 1.05; letter-spacing: .01em; }
.tile p { margin: 0; font-size: 15px; line-height: 1.7; color: #4a4a4a; }
.sec--dark .tile p { color: #c9c9c9; }
html:not(.js-anim) .tile, .tile.is-in { transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) {
  .tile:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0, 0, 0, .09); }
  .sec--dark .tile:hover { box-shadow: 0 26px 50px rgba(0, 0, 0, .38); }
}

/* services page */
.svc-row {
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; align-items: center;
  padding: 56px 0; border-top: 1px solid #e5e5e5; scroll-margin-top: 88px;
}
.svc-row:last-child { padding-bottom: 0; }
.svc-media { position: relative; }
.svc-media img { width: 100%; height: 250px; object-fit: cover; display: block; }
.svc-num {
  position: absolute; left: 24px; bottom: -22px; background: #EBA91F; color: #1b1b1b;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; font-size: 22px; padding: 8px 14px;
}
.svc-row .col { gap: 16px; }
.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; font-size: 14px; font-weight: 600; }
.ticks li { position: relative; padding-left: 26px; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 1px; top: .32em; width: 12px; height: 6px;
  border-left: 3px solid #EBA91F; border-bottom: 3px solid #EBA91F; transform: rotate(-45deg);
}

/* process page */
.timeline { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid #dcdad3; }
.timeline li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 28px; align-items: start; padding: 28px 0; border-top: 1px solid #dcdad3; }
.tl-num {
  width: 72px; height: 72px; background: #EBA91F; color: #1b1b1b; display: flex; align-items: center; justify-content: center;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; font-size: 30px;
}
.timeline h3 { font-weight: 700; font-size: 28px; line-height: 1.05; }
.timeline p { margin: 8px 0 0; font-size: 15px; line-height: 1.7; color: #4a4a4a; max-width: 720px; }

/* clients page */
.clients-grid--lg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.clients-grid--lg .client-logo { padding: 28px; }
.clients-grid--lg .client-name { font-size: 13px; padding: 16px 10px; }

/* contact page */
.map { border-top: 6px solid #EBA91F; background: #f5f4f0; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

@media (max-width: 860px) {
  .svc-row { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 44px 0; }
}
@media (max-width: 560px) {
  .split { gap: 48px; }
  .stack { gap: 40px; }
  .h3 { font-size: 30px; }
  .ticks { grid-template-columns: minmax(0, 1fr); }
  .timeline li { grid-template-columns: 56px minmax(0, 1fr); gap: 18px; }
  .tl-num { width: 56px; height: 56px; font-size: 24px; }
  .clients-grid--lg .client-logo { padding: 10px; }
  .clients-grid--lg .client-name { font-size: 10px; padding: 10px 6px; }
  .map iframe { height: 320px; }
}

/* ---------- tablet & phone ---------- */
@media (max-width: 960px) {
  .header-cta { display: none !important; }
  .nav-toggle { display: flex; }
  .navlinks {
    display: none !important;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0 !important;
    background: #ffffff; border-top: 1px solid #ececec; border-bottom: 4px solid #EBA91F;
    box-shadow: 0 18px 30px rgba(0,0,0,.12);
  }
  .navlinks.open { display: flex !important; }
  .navlinks a { padding: 16px 24px; border-bottom: 1px solid #f0f0f0; }
  .nav-quote { display: block; background: #EBA91F; color: #1b1b1b !important; font-weight: 700; }
  .topbar-addr { display: none !important; }
  .clients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sectors { justify-content: flex-start !important; gap: 8px 36px !important; }
  .sectors span[aria-hidden] { display: none; }
}

@media (max-width: 860px) {
  .hero-img { display: none !important; }
  .slant-img { clip-path: none !important; }
  section { padding-top: 72px !important; padding-bottom: 72px !important; }
  section#home, section.no-top { padding-top: 0 !important; }
  section#home { padding-bottom: 0 !important; }
  section#home > div:last-child { padding-top: 72px !important; padding-bottom: 80px !important; }
}

@media (max-width: 560px) {
  .sectors { gap: 6px 22px !important; font-size: 20px !important; }
  .contact-card { padding: 24px 20px !important; }
  .contact-card a[href^="mailto"] { font-size: 14px; }
  .client-logo { padding: 8px; }
  .client-name { font-size: 10px; padding: 10px 6px; }
  form { padding: 28px 20px !important; }
  section [style*="gap: 72px"] { gap: 48px !important; }
  section [style*="grid-template-columns: repeat(3"] { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


#site-nav a[aria-current="page"] {
    color: #C58A00 !important;
    position: relative;
}

#site-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #EBA91F;
}