/* =========================================================
   Creative Enterprises — clean HTML/CSS rebuild
   Matches live design: Rubik type, charcoal header/footer,
   sky-blue page heroes, red gradient call-to-action.
   ========================================================= */
:root {
  --charcoal: #333333;
  --footer: #2c2c2c;
  --sky: #6ebcda;
  --blue-rule: #1d8fc8;
  --link: #149dcc;
  --navy: #1f2836;
  --mist: #eeeeee;
  --pale: #f2f3f5;
  --stone: #8a8a8a;
  --taupe: #7d7066;
  --ink: #232323;
  --body: #555555;
  --white: #ffffff;
  --red-a: #a3272f;
  --red-b: #e93c40;
  --wrap: 1100px;
  --font: "Rubik", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--body); line-height: 1.6; background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue-rule); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.15; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(700px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 200; }
.skip:focus { left: 1rem; }

/* ---------- Header ---------- */
.site-header { background: var(--charcoal); position: sticky; top: 0; z-index: 50; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; min-height: 106px; gap: 1rem; padding-inline: clamp(1rem, 4vw, 4rem); }
.logo img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--white); font-weight: 500; font-size: .95rem; }
.nav a:hover { text-decoration: none; opacity: .8; }
.nav .pill {
  background: var(--white); color: #777; border-radius: 999px;
  padding: .35rem 1.4rem; letter-spacing: .06em; font-weight: 500;
}
.nav .pill:hover { opacity: 1; color: var(--ink); }
.a11y { display: flex; align-items: center; gap: .3rem; color: var(--white); margin-left: .25rem; }
.a11y svg { width: 18px; height: 16px; }
.a11y button {
  width: 18px; height: 18px; padding: 0; line-height: 14px; font-size: 14px;
  background: transparent; color: var(--white); border: 1.5px solid var(--white); border-radius: 2px; cursor: pointer;
}
.nav-toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; }
.nav-toggle svg { width: 30px; height: 30px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border-radius: 999px; padding: .7rem 2.4rem;
  font-weight: 500; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
  border: 2px solid var(--white); transition: background .2s, color .2s;
}
.btn:hover { text-decoration: none; }
.btn--taupe { background: var(--taupe); border-color: var(--taupe); color: var(--white); }
.btn--taupe:hover { background: #6a5e55; border-color: #6a5e55; }
.btn--outline { background: transparent; color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--ink); }
.btn--white { background: var(--white); color: #666; }
.btn--white:hover { background: transparent; color: var(--white); }

/* ---------- Home hero ---------- */
.hero-home {
  min-height: 655px; display: grid; place-items: center; text-align: center;
  background: var(--stone) url("../images/header_image.jpg") center / cover no-repeat;
  padding: 4rem 1.25rem;
}
.hero-home h1 { color: var(--white); font-weight: 900; font-size: clamp(2rem, 4.2vw, 2.6rem); margin-bottom: 1.25rem; }
.hero-home .btns { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Blue page hero ---------- */
.hero-blue { background: var(--sky); color: var(--white); text-align: center; padding: clamp(5rem, 11vw, 9rem) 1.25rem; }
.hero-blue h1 { color: var(--white); font-weight: 900; font-size: clamp(2.6rem, 6vw, 4.1rem); margin-bottom: .35em; }
.hero-blue .sub { font-weight: 300; font-size: clamp(1.6rem, 3.4vw, 2.6rem); margin-bottom: .9em; line-height: 1.2; }
.hero-blue .small { font-weight: 400; font-size: 1.25rem; margin: 0; }

/* ---------- Generic sections ---------- */
.section { padding: 3.5rem 0; }
.intro { text-align: center; padding: 3rem 0 3.5rem; }
.intro h2 { font-weight: 300; font-size: clamp(1.9rem, 3.4vw, 2.4rem); margin-bottom: .8em; }
.intro p { font-weight: 300; font-size: 1.2rem; max-width: 34em; margin-inline: auto; color: #666; }

.copy { padding: 3.5rem 0 3rem; font-size: .95rem; }
.copy p { color: #555; }
.copy .muted { color: #8a8f99; }

/* Home: feature cards */
.cards-band { background: var(--mist); padding: 7.5rem 0 5rem; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 850px; margin-inline: auto; }
.card { display: block; color: #555; }
.card:hover { text-decoration: none; }
.card img { width: 100%; height: auto; aspect-ratio: 640 / 370; object-fit: cover; background: #d8d8d8; }
.card p { background: var(--white); margin: 0; padding: 1.5rem 1.6rem 1.9rem; font-size: .88rem; color: #555; }

/* Home: proudly Canadian strip */
.strip { background: var(--footer); color: var(--white); text-align: center; padding: 1.6rem 1rem; }
.strip p { margin: 1rem 0; font-size: 1.15rem; font-weight: 500; }
.strip::before, .strip::after { content: ""; display: block; width: 150px; height: 2px; background: var(--white); margin: 0 auto; }

/* Products: grey feature band */
.band {
  background: var(--stone) url("../images/facility-panorama.jpg") center / cover no-repeat;
  position: relative; color: var(--white); padding: 5.5rem 0 7rem;
}
.band::before { content: ""; position: absolute; inset: 0; background: rgba(60, 60, 60, .55); }
.band .narrow { position: relative; max-width: 840px; }
.band h2 { color: var(--white); font-weight: 900; font-size: clamp(2rem, 3.8vw, 2.75rem); margin-bottom: .55em; }
.band p { font-size: 1.35rem; font-weight: 400; margin: 0; line-height: 1.4; }

/* ---------- Map + contacts card ---------- */
.map-wrap { position: relative; min-height: 520px; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card {
  position: absolute; left: clamp(1rem, 21vw, 320px); top: 50%; transform: translateY(-40%);
  background: var(--white); color: var(--ink); width: min(445px, calc(100% - 2rem));
  padding: 2.4rem 2.8rem 3rem; font-size: .95rem; box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.map-card h2 { font-size: 1.4rem; font-weight: 500; margin-bottom: 1.1rem; }
.map-card p { margin: 0 0 1.4rem; color: var(--ink); }
.map-card a { color: var(--ink); }

/* ---------- Red call-to-action ---------- */
.cta { background: linear-gradient(110deg, var(--red-a) 0%, var(--red-b) 100%); color: var(--white); padding: 5.5rem 0; }
.cta .wrap { display: flex; align-items: center; justify-content: center; gap: clamp(2rem, 6vw, 4.5rem); max-width: 920px; }
.cta .btns { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.cta .text { text-align: right; }
.cta h2 { color: var(--white); font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; margin-bottom: .55em; }
.cta p { font-size: 1.4rem; font-weight: 300; margin: 0; }

/* ---------- About: team ---------- */
.team-head { text-align: center; padding: 1.5rem 0 1.6rem; }
.team-head h2 { font-weight: 300; font-size: clamp(2.4rem, 4.6vw, 3.4rem); padding: .9rem 0; display: inline-block; }
.team-head h2::before, .team-head h2::after { content: ""; display: block; width: 240px; height: 3px; background: var(--blue-rule); margin: 0 auto; }
.team-head h2::before { margin-bottom: 1.6rem; }
.team-head h2::after { margin-top: 1.4rem; }

.member { padding: 1.2rem 0; }
.member .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; max-width: 960px; }
.member--dark { background: var(--navy); color: var(--white); }
.member--dark h3, .member--dark .role { color: var(--white); }
.member--light { background: var(--pale); color: #555; }
.member--light .photo { order: 2; }
.member .bio { font-style: italic; font-weight: 300; font-size: .95rem; margin-bottom: 2.2rem; }
.member h3 { font-size: 1rem; font-weight: 700; margin-bottom: .6rem; }
.member .role { text-transform: uppercase; font-size: .95rem; margin: 0; color: var(--ink); }
.member--dark .bio, .member--dark h3, .member--dark .role { color: var(--white); }
.photo { display: flex; justify-content: center; }
.photo img { width: 100%; max-width: 340px; height: auto; }

/* ---------- Contact page ---------- */
.contact-info { background: var(--mist); padding: 4.5rem 0 5rem; }
.contact-page h2 { font-weight: 300; font-size: clamp(2.5rem, 4.8vw, 3.8rem); margin-bottom: 1.6rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; }
.grid3 h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 1.2rem; }
.grid3 p { font-size: .95rem; color: #666; }
.general { padding: 5rem 0 6rem; }
.general .grid3 { row-gap: 5.5rem; }
.person h3 { font-size: 1.4rem; font-weight: 500; line-height: 1.05; margin-bottom: 1.3rem; }
.person p { margin: 0; font-size: .95rem; color: #666; }
.person--center { grid-column: 2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--white); text-align: center; padding: 1.4rem 1rem 1.8rem; }
.footer-nav { display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: .4rem 1.9rem; list-style: none; margin: 0 0 1.4rem; padding: 0; }
.footer-nav a { color: var(--white); font-weight: 700; font-size: .95rem; }
.site-footer .copy-line { margin: 0; font-size: .9rem; font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    background: var(--charcoal); padding: 1rem clamp(1rem, 4vw, 4rem) 1.5rem; display: none;
  }
  .nav.open { display: flex; }
  .member .wrap, .member--light .wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .member--light .photo { order: 0; }
  .cta .wrap { flex-direction: column-reverse; }
  .cta .text { text-align: center; }
  .cta .btns { align-items: center; }
}
@media (max-width: 760px) {
  .cards, .grid3 { grid-template-columns: 1fr; }
  .person--center { grid-column: auto; }
  .general .grid3 { row-gap: 3rem; }
  .map-wrap { min-height: 0; display: flex; flex-direction: column; }
  .map-wrap iframe { position: static; height: 320px; }
  .map-card { position: static; transform: none; width: 100%; box-shadow: none; }
  .hero-home { min-height: 480px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
