/* ===== A. Howden Construction Ltd. — static site ===== */
:root {
  --brand: #40819b;        /* steel blue — matches the HOWDEN logo */
  --brand-dark: #2f6177;
  --accent: #45869f;       /* logo blue — the bar / squares accent */
  --accent-deep: #2f6177;  /* readable blue for small label text */
  --dark: #1f2d3a;         /* slate navy — dark bands / footer */
  --dark-2: #283a4b;
  --ink: #222a30;
  --muted: #5f6f78;
  --line: #e2e8ec;
  --bg: #ffffff;
  --bg-alt: #f4f7f9;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 6px 24px rgba(31, 45, 58, .10);
  --shadow-lg: 0 18px 48px rgba(31, 45, 58, .18);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }

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

.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-deep);
  margin-bottom: 12px;
}
/* concrete-gray bar accent, echoing the logo */
.eyebrow::after {
  content: "";
  display: block;
  width: 38px;
  height: 4px;
  margin-top: 8px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head .eyebrow::after { margin-left: auto; margin-right: auto; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 13px;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 2px solid var(--brand);
  cursor: pointer;
  transition: all .25s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn--lg { padding: 16px 38px; font-size: 14px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 10px 14px; color: var(--ink); font-weight: 600; font-size: 15px;
  border-radius: 6px; transition: all .2s;
}
.nav-links a:hover { color: var(--brand); background: var(--bg-alt); }
.nav-links a.active { color: var(--brand); }
.nav-links .btn { color: #fff; margin-left: 8px; padding: 11px 22px; }
.nav-links .btn:hover { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--dark); border-radius: 3px; margin: 5px 0; transition: .3s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(28,40,52,.62), rgba(28,40,52,.72)),
    url("images/proj-880-broadway.jpg") center/cover no-repeat;
}
.hero__inner { max-width: 820px; margin: 0 auto; padding: 90px 24px; }
.hero h1 { color: #fff; font-size: clamp(44px, 8vw, 92px); font-weight: 800; letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(0,0,0,.3); }
.hero p { font-size: clamp(17px, 2.4vw, 21px); margin: 14px 0 34px; color: rgba(255,255,255,.92); }
.hero .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* page hero (interior) */
.page-hero {
  position: relative; color: #fff; text-align: center;
  padding: 88px 24px;
  background: linear-gradient(rgba(28,40,52,.78), rgba(28,40,52,.86)), var(--dark);
  background-size: cover; background-position: center;
}
.page-hero h1 { color: #fff; font-size: clamp(34px, 6vw, 56px); }
.page-hero p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 640px; margin: 8px auto 0; }
.page-hero--projects { background-image: linear-gradient(rgba(28,40,52,.78), rgba(28,40,52,.86)), url("images/proj-baydo-tower-1.jpg"); }
.page-hero--services  { background-image: linear-gradient(rgba(28,40,52,.78), rgba(28,40,52,.86)), url("images/svc-commercial.jpg"); }
.page-hero--about     { background-image: linear-gradient(rgba(28,40,52,.78), rgba(28,40,52,.86)), url("images/proj-one-series-icf-parkade.jpg"); }
.page-hero--careers   { background-image: linear-gradient(rgba(28,40,52,.78), rgba(28,40,52,.86)), url("images/proj-precast-parkade.jpg"); }
.page-hero--contact   { background-image: linear-gradient(rgba(28,40,52,.78), rgba(28,40,52,.86)), url("images/proj-commercial-slab.jpg"); }

/* ===== Breadcrumb-ish strip ===== */

/* ===== Services grid ===== */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__img { aspect-ratio: 16/10; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { font-size: 21px; margin-bottom: 8px; }
.card__body p { color: var(--muted); margin: 0 0 16px; font-size: 15.5px; }
.card__body .more { margin-top: auto; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }

/* ===== Service detail rows ===== */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.feature + .feature { margin-top: 80px; }
.feature img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.feature--rev .feature__media { order: 2; }
.feature__text h3 { font-size: clamp(24px, 3vw, 32px); }
.feature__text p { color: var(--muted); font-size: 17px; }
.feature__text .eyebrow { margin-bottom: 8px; }

/* ===== About split ===== */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split__text h2 { font-size: clamp(28px, 4vw, 40px); }
.split__text p { color: var(--muted); font-size: 17px; }

/* ===== Stats / highlights ===== */
.pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.pill { background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink); font-weight: 600; padding: 9px 16px; border-radius: 30px; font-size: 14px; }

/* ===== Mission band ===== */
.band {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  color: #fff; text-align: center; padding: 70px 0;
}
.band h2 { color: #fff; font-size: clamp(24px, 4vw, 36px); max-width: 880px; margin: 0 auto; font-weight: 700; }
.band--cta p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 620px; margin: 10px auto 26px; }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; background: #ccc;
}
.gallery figure img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 14px; color: #fff; font-weight: 700; font-size: 15px;
  background: linear-gradient(transparent, rgba(28,40,52,.85));
  transform: translateY(0); transition: .3s;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(16,22,28,.95);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 6px; box-shadow: var(--shadow-lg); }
.lightbox__cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; }
.lightbox__close { position: absolute; top: 20px; right: 28px; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; background: none; border: 0; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); color: #fff; border: 0; font-size: 30px; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; transition: .2s; }
.lightbox__nav:hover { background: rgba(255,255,255,.3); }
.lightbox__nav.prev { left: 18px; }
.lightbox__nav.next { right: 18px; }

/* ===== Certifications ===== */
.certs { display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; }
.certs img { height: 100px; width: auto; filter: grayscale(.1); }

/* ===== Careers list ===== */
.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 760px; margin: 0 auto; }
.job {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px;
  box-shadow: var(--shadow); font-weight: 700; font-size: 17px;
}
.job .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: 0 0 auto; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; }
.contact-info .info-item { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.contact-info .ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 10px; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; color: var(--brand);
}
.contact-info .ico svg { width: 22px; height: 22px; }
.contact-info h4 { margin: 0 0 2px; font-size: 16px; }
.contact-info p, .contact-info a { margin: 0; color: var(--muted); font-size: 16px; }
.contact-info a:hover { color: var(--brand); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form .field { margin-bottom: 18px; }
.form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.form input, .form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 7px;
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg-alt); transition: .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(64,129,155,.25); }
.form textarea { resize: vertical; min-height: 140px; }
.form .btn { width: 100%; border: 0; }
.form .note { font-size: 13px; color: var(--muted); margin: 14px 0 0; text-align: center; }

.map-wrap { margin-top: 18px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ===== Footer ===== */
.site-footer { background: var(--dark); color: #cdd7df; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer .f-brand img { height: 56px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.site-footer p { font-size: 15px; margin: 0 0 10px; color: #aab8c2; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #aab8c2; font-size: 15px; }
.footer-links a:hover { color: #fff; }
.f-contact a, .f-contact span { color: #aab8c2; display: block; margin-bottom: 10px; font-size: 15px; }
.f-contact a:hover { color: #fff; }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: #fff; transition: .25s;
}
.socials a:hover { background: var(--brand); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 52px; border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0; text-align: center; font-size: 14px; color: #8b9aa6;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .feature, .feature--rev .feature__media { grid-template-columns: 1fr; }
  .feature--rev .feature__media { order: 0; }
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 10px 16px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; border-radius: 6px; }
  .nav-links .btn { margin: 8px 0 0; text-align: center; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .jobs { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
}
@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .certs img { height: 78px; }
}
