/* ===========================================================
   Window Studio — Global Stylesheet
   Premium windows & doors · North America
   ========================================================= */

:root {
  --white: #ffffff;
  --off-white: #f5f8fb;
  --light-grey: #eaf0f6;
  --border: #d6e0eb;
  --text-light: #5f6b7a;
  --text-body: #2f3a4a;
  --text-dark: #0f172a;

  /* Brand palette: deep navy + teal/cyan with Canadian red accent */
  --navy: #0f2c52;
  --navy-dark: #081a31;
  --navy-light: #1d4079;
  --teal: #0e7490;
  --teal-dark: #0b5a72;
  --teal-light: #14b8a6;
  --cyan: #22d3ee;
  --sky: #38bdf8;
  --maple: #d52b1e;          /* Canadian flag red */
  --maple-dark: #a91d12;
  --maple-light: #ef4a3a;

  /* Legacy alias mapping — old `--red` rules now pick up the teal brand;
     the maple-leaf red is exposed as `--maple` for hero accents. */
  --red: var(--teal);
  --red-dark: var(--teal-dark);
  --red-light: var(--teal-light);

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --shadow: 0 2px 16px rgba(15, 44, 82, 0.08);
  --shadow-lg: 0 12px 36px rgba(15, 44, 82, 0.16);
  --radius: 6px;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── TOP BAR ── */
.topbar { background: var(--navy-dark); padding: 8px 0; }
.topbar-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 40px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.topbar-left, .topbar-right { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.topbar-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: rgba(255, 255, 255, 0.8); font-family: var(--font-body);
}
.topbar-item svg { width: 14px; height: 14px; color: var(--red); flex-shrink: 0; }
.topbar-item a { color: rgba(255, 255, 255, 0.8); transition: color 0.2s; }
.topbar-item a:hover { color: var(--white); }

/* ── NAVIGATION ── */
nav.site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 0 40px;
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.nav-logo img { height: 62px; width: auto; object-fit: contain; display: block; }
.nav-logo-fallback {
  font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--navy);
  letter-spacing: 0.04em;
}
.nav-logo-fallback span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a, .nav-dropdown > a {
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.05em;
  padding: 10px 0; transition: color 0.2s; position: relative;
}
.nav-links > a::after, .nav-dropdown > a::after {
  content: ''; position: absolute; left: 0; bottom: 6px; width: 0; height: 2px;
  background: var(--red); transition: width 0.25s ease;
}
.nav-links > a:hover, .nav-dropdown > a:hover,
.nav-links > a.active, .nav-dropdown.active > a { color: var(--red); }
.nav-links > a:hover::after, .nav-dropdown > a:hover::after,
.nav-links > a.active::after, .nav-dropdown.active > a::after { width: 100%; }
.nav-cta {
  background: var(--red); color: var(--white) !important;
  padding: 12px 26px !important; border-radius: 4px;
  letter-spacing: 0.06em; transition: background 0.2s;
}
.nav-cta:hover { background: var(--red-dark); }
.nav-cta::after { display: none !important; }

/* Mega menu */
.nav-dropdown { position: relative; }
.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--white); min-width: 880px; padding: 32px;
  box-shadow: var(--shadow-lg); border-radius: 8px;
  border-top: 3px solid var(--red);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  opacity: 0; visibility: hidden; transition: all 0.25s ease;
  z-index: 100;
}
.nav-dropdown:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-col h5 {
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  color: var(--red); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.mega-col a {
  display: block; padding: 6px 0; font-size: 13.5px; color: var(--text-body);
  transition: color 0.15s, padding-left 0.15s;
}
.mega-col a:hover { color: var(--red); padding-left: 6px; }

/* Hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-hamburger span { width: 26px; height: 2.5px; background: var(--text-dark); border-radius: 2px; transition: all 0.25s; }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--navy-dark); color: var(--white);
  z-index: 2000; padding: 80px 30px 30px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
  padding: 14px 0; color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.08);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.mobile-menu a:hover { color: var(--red-light); }
.mobile-close {
  position: absolute; top: 22px; right: 24px;
  font-size: 30px; color: var(--white); background: none; border: none; cursor: pointer;
}

/* ── BUTTONS ── */
.btn-red, .btn-white-outline, .btn-outline, .btn-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 32px; border-radius: 4px; cursor: pointer;
  transition: all 0.25s; border: none;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(192, 32, 47, 0.35); }
.btn-white-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-white-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-submit {
  background: var(--red); color: var(--white); width: 100%;
  padding: 16px; font-size: 13px; margin-top: 6px;
}
.btn-submit:hover { background: var(--red-dark); }

/* ── LAYOUT HELPERS ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.section-pad { padding: 100px 0; }
.bg-white { background: var(--white); }
.bg-light { background: var(--off-white); }
.bg-navy { background: var(--navy); color: var(--white); }
.section-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  color: var(--red); text-transform: uppercase; letter-spacing: 0.16em;
  margin-bottom: 14px;
}
.section-kicker::before { content: ''; width: 30px; height: 2px; background: var(--red); }
.section-title {
  font-family: var(--font-head); font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; color: var(--text-dark); line-height: 1.2; letter-spacing: -0.01em;
}
.section-title span { color: var(--red); }
.divider-line { width: 60px; height: 3px; background: var(--red); margin: 18px 0; }
.section-sub { color: var(--text-light); font-size: 16px; max-width: 700px; }
.center-head { text-align: center; }
.center-head .section-kicker { justify-content: center; }
.center-head .section-title { margin: 0 auto; }
.center-head .divider-line { margin: 18px auto 0; }
.center-head .section-sub { margin: 16px auto 0; text-align: center; }

/* ── PAGE HEADER (sub-page hero banner) ── */
.page-header {
  position: relative; padding: 120px 40px 80px;
  background:
    linear-gradient(135deg, rgba(17,24,39,0.92), rgba(26,39,68,0.88)),
    url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1600&q=80') center/cover no-repeat;
  color: var(--white); text-align: center;
}
.page-header .breadcrumbs {
  font-size: 13px; color: rgba(255,255,255,0.7); letter-spacing: 0.06em; margin-bottom: 14px;
  text-transform: uppercase;
}
.page-header .breadcrumbs a { color: var(--red-light); }
.page-header h1 {
  font-family: var(--font-head); font-size: clamp(34px, 5vw, 54px);
  font-weight: 700; letter-spacing: -0.01em; margin-bottom: 14px;
}
.page-header h1 span { color: var(--red); }
.page-header p {
  max-width: 760px; margin: 0 auto; color: rgba(255,255,255,0.85); font-size: 16.5px;
}

/* ── HERO (home) ── */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  padding: 60px 40px; color: var(--white); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(135deg, rgba(17,24,39,0.85) 0%, rgba(26,39,68,0.75) 50%, rgba(17,24,39,0.85) 100%),
    url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1800&q=80') center/cover no-repeat;
}
.hero-content {
  position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; width: 100%;
}
.hero-badge {
  display: inline-block; padding: 8px 18px;
  background: rgba(192, 32, 47, 0.18); border: 1px solid rgba(192, 32, 47, 0.6);
  color: var(--red-light); font-family: var(--font-head); font-weight: 600;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 30px; margin-bottom: 26px;
}
.hero-title {
  font-family: var(--font-head); font-weight: 700; line-height: 1.08;
  font-size: clamp(38px, 6vw, 72px); letter-spacing: -0.015em; margin-bottom: 26px;
}
.hero-title span { color: var(--red-light); }
.hero-desc {
  font-size: 17.5px; line-height: 1.7; max-width: 640px; margin-bottom: 36px;
  color: rgba(255,255,255,0.86);
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding-top: 36px; border-top: 1px solid rgba(255,255,255,0.15); max-width: 880px;
}
.hero-stat .stat-num {
  font-family: var(--font-head); font-size: clamp(24px, 3vw, 38px); font-weight: 700;
  color: var(--white); line-height: 1;
}
.hero-stat .stat-num::after { content: ''; }
.hero-stat .stat-label { font-size: 12px; color: rgba(255,255,255,0.65); letter-spacing: 0.04em; margin-top: 6px; }

/* ── TICKER ── */
.ticker {
  background: var(--red); color: var(--white);
  padding: 14px 0; overflow: hidden; white-space: nowrap; position: relative;
}
.ticker-track { display: inline-block; animation: tickerScroll 38s linear infinite; }
.ticker-item {
  font-family: var(--font-head); font-weight: 600; font-size: 13.5px;
  text-transform: uppercase; letter-spacing: 0.16em; padding: 0 18px;
}
.ticker-dot { padding: 0 6px; opacity: 0.65; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-main {
  height: 520px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%),
              url('https://images.unsplash.com/photo-1545558014-8692077e9b5c?w=900&q=80') center/cover;
  background-image: url('https://images.unsplash.com/photo-1545558014-8692077e9b5c?w=900&q=80');
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-lg);
}
.about-img-float {
  position: absolute; bottom: -36px; right: -36px;
  width: 230px; height: 200px; border-radius: 8px;
  background: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=400&q=80') center/cover no-repeat;
  border: 8px solid var(--white); box-shadow: var(--shadow-lg);
}
.about-exp-badge {
  position: absolute; top: 32px; left: -32px;
  background: var(--red); color: var(--white);
  padding: 22px 28px; border-radius: 8px; box-shadow: var(--shadow-lg);
  text-align: center;
}
.exp-num { font-family: var(--font-head); font-size: 36px; font-weight: 700; line-height: 1; }
.exp-txt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }
.about-body { font-size: 16px; color: var(--text-body); margin-bottom: 18px; }
.about-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin: 28px 0; }
.about-feat { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--text-dark); }
.feat-check {
  width: 24px; height: 24px; border-radius: 50%; background: rgba(192, 32, 47, 0.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.feat-check svg { width: 14px; height: 14px; color: var(--red); }

/* ── STATS BAND ── */
.stats-band { background: var(--navy); color: var(--white); padding: 60px 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-block { text-align: center; padding: 0 10px; }
.stat-block .num {
  font-family: var(--font-head); font-size: clamp(34px, 4vw, 52px); font-weight: 700;
  color: var(--red-light); line-height: 1;
}
.stat-block .num span { color: var(--white); }
.stat-block .lbl { font-size: 13px; letter-spacing: 0.05em; color: rgba(255,255,255,0.78); margin-top: 8px; }

/* ── SERVICES GRID ── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-card {
  background: var(--white); border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-img {
  height: 220px; background-size: cover; background-position: center;
  position: relative; background-color: var(--navy-light);
}
.service-num-badge {
  position: absolute; bottom: 14px; right: 14px;
  background: var(--red); color: var(--white);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
}
.service-body { padding: 26px 26px 28px; flex-grow: 1; display: flex; flex-direction: column; }
.service-icon {
  width: 44px; height: 44px; border-radius: 8px;
  background: rgba(192, 32, 47, 0.1);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.service-icon svg { width: 24px; height: 24px; color: var(--red); }
.service-name {
  font-family: var(--font-head); font-size: 19px; font-weight: 700;
  color: var(--text-dark); margin-bottom: 10px;
}
.service-desc { font-size: 14.5px; color: var(--text-light); margin-bottom: 18px; flex-grow: 1; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  color: var(--red); text-transform: uppercase; letter-spacing: 0.08em;
  transition: gap 0.2s;
}
.service-link:hover { gap: 10px; }

/* ── PRODUCTS GRID ── */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.products-category-title {
  grid-column: 1 / -1;
  font-family: var(--font-head); font-size: 22px; font-weight: 700;
  color: var(--text-dark); padding: 36px 0 4px;
  border-bottom: 2px solid var(--red); display: inline-block;
  width: fit-content;
}
.product-card {
  background: var(--white); border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.product-card.wide { grid-column: span 3; flex-direction: row; }
.product-card.wide .product-img { width: 50%; height: auto; min-height: 360px; }
.product-card.wide .product-body { width: 50%; padding: 40px; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img {
  height: 220px; background-size: cover; background-position: center;
  position: relative; background-color: var(--navy-light);
}
.product-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--red); color: var(--white);
  padding: 5px 12px; border-radius: 4px;
  font-family: var(--font-head); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.product-body { padding: 22px 22px 26px; flex-grow: 1; display: flex; flex-direction: column; }
.product-name {
  font-family: var(--font-head); font-size: 17px; font-weight: 700;
  color: var(--text-dark); margin-bottom: 10px;
}
.product-desc { font-size: 13.5px; color: var(--text-light); margin-bottom: 14px; flex-grow: 1; }
.spec-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.spec-tag {
  background: var(--off-white); color: var(--text-body);
  padding: 4px 10px; border-radius: 3px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.03em;
  border: 1px solid var(--border);
}

/* ── PRODUCT DETAIL ── */
#productDetail { display: none; padding: 100px 0; background: var(--white); }
#productDetail.open { display: block; }
.pd-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  color: var(--red); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 30px; cursor: pointer;
}
.pd-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 60px; }
.pd-hero-img {
  height: 460px; border-radius: 8px; background-size: cover; background-position: center;
  background-color: var(--navy-light); box-shadow: var(--shadow-lg);
}
.pd-cat {
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  color: var(--red); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px;
}
.pd-title {
  font-family: var(--font-head); font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  color: var(--text-dark); margin-bottom: 18px;
}
.pd-overview { color: var(--text-body); font-size: 15.5px; margin-bottom: 22px; }
.pd-keyfeat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pd-keyfeat .feat-item {
  display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-dark);
}
.pd-keyfeat .feat-bullet { color: var(--red); font-weight: 700; flex-shrink: 0; }
.pd-section { margin-bottom: 50px; }
.pd-section-title {
  font-family: var(--font-head); font-size: 22px; font-weight: 700;
  color: var(--text-dark); margin-bottom: 24px;
  padding-bottom: 12px; border-bottom: 2px solid var(--red); display: inline-block;
}
.pd-variations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pd-var-card { background: var(--off-white); border-radius: 8px; overflow: hidden; }
.pd-var-img {
  height: 140px; background-size: cover; background-position: center;
  background-color: var(--navy-light);
}
.pd-var-body { padding: 14px 16px 16px; }
.pd-var-name { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--text-dark); margin-bottom: 4px; }
.pd-var-desc { font-size: 12.5px; color: var(--text-light); }
.pd-specs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  background: var(--off-white); border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
}
.pd-spec-row { display: contents; }
.pd-spec-label, .pd-spec-value {
  padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 13.5px;
}
.pd-spec-label { font-weight: 700; color: var(--text-dark); background: var(--white); }
.pd-spec-value { color: var(--text-body); }
.pd-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pd-gallery-item {
  height: 200px; background-size: cover; background-position: center; border-radius: 6px;
  background-color: var(--navy-light);
}
.pd-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 8px; overflow: hidden; }
.pd-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pd-applications { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pd-app-card {
  padding: 22px; background: var(--off-white); border-radius: 8px;
  border-left: 3px solid var(--red);
}
.pd-app-card h5 { font-family: var(--font-head); color: var(--text-dark); margin-bottom: 6px; font-size: 15px; }
.pd-app-card p { color: var(--text-light); font-size: 13px; }
.pd-cta {
  background: var(--navy); color: var(--white); padding: 36px 40px;
  border-radius: 10px; display: flex; justify-content: space-between;
  align-items: center; gap: 30px; flex-wrap: wrap;
}
.pd-cta h3 { font-family: var(--font-head); font-size: 22px; margin-bottom: 6px; }
.pd-cta p { color: rgba(255,255,255,0.78); font-size: 14px; }
.pd-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-cta-btns .btn-outline { color: var(--white); border-color: var(--white); }
.pd-cta-btns .btn-outline:hover { background: var(--white); color: var(--navy); }

/* ── PROJECTS ── */
.projects-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; justify-content: center; }
.filter-btn {
  background: var(--white); border: 1px solid var(--border);
  padding: 10px 22px; border-radius: 30px;
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-body); transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }
.projects-masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proj-card {
  position: relative; height: 320px; border-radius: 8px; overflow: hidden;
  cursor: pointer; transition: opacity 0.3s;
}
.proj-card.large { grid-column: span 2; height: 420px; }
.proj-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 0.5s; background-color: var(--navy-light);
}
.proj-card:hover .proj-bg { transform: scale(1.06); }
.proj-info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 26px;
  background: linear-gradient(to top, rgba(17,24,39,0.92) 30%, transparent);
  color: var(--white);
}
.proj-cat {
  font-family: var(--font-head); font-size: 11px; font-weight: 600;
  color: var(--red-light); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px;
}
.proj-name { font-family: var(--font-head); font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.proj-loc { font-size: 12.5px; color: rgba(255,255,255,0.72); }

/* ── ENGINEERING ── */
.engineering-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.eng-img {
  height: 540px; border-radius: 8px;
  background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=900&q=80') center/cover;
  box-shadow: var(--shadow-lg);
}
.eng-steps { display: flex; flex-direction: column; gap: 22px; }
.eng-step { display: flex; gap: 18px; }
.eng-step-num {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 8px;
  background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
}
.eng-step h4 { font-family: var(--font-head); color: var(--text-dark); font-size: 16.5px; margin-bottom: 4px; }
.eng-step p { color: var(--text-light); font-size: 14px; }

/* ── WHY US ── */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
  background: var(--white); padding: 36px 28px; border-radius: 10px;
  box-shadow: var(--shadow); text-align: center; transition: transform 0.3s;
  border-top: 3px solid var(--red);
}
.why-card:hover { transform: translateY(-6px); }
.why-icon {
  width: 60px; height: 60px; margin: 0 auto 18px;
  border-radius: 12px; background: rgba(192, 32, 47, 0.1);
  display: flex; align-items: center; justify-content: center;
}
.why-icon svg { width: 28px; height: 28px; color: var(--red); }
.why-card h4 { font-family: var(--font-head); font-size: 17px; color: var(--text-dark); margin-bottom: 8px; }
.why-card p { color: var(--text-light); font-size: 13.5px; }

/* ── MEDIA GRID ── */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.media-item {
  position: relative; height: 280px; border-radius: 8px; overflow: hidden;
  cursor: pointer;
}
.media-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 0.5s;
}
.media-item:hover .media-bg { transform: scale(1.08); }
.media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(17,24,39,0) 50%, rgba(192,32,47,0.6) 100%);
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 18px;
  opacity: 0; transition: opacity 0.3s;
}
.media-item:hover .media-overlay { opacity: 1; }
.media-overlay svg { width: 26px; height: 26px; color: var(--white); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.2fr; gap: 50px; }
.contact-info-card {
  background: var(--navy); color: var(--white);
  padding: 40px; border-radius: 10px;
}
.contact-info-card h3 { font-family: var(--font-head); font-size: 26px; margin-bottom: 12px; }
.contact-info-card p { color: rgba(255,255,255,0.75); font-size: 14.5px; margin-bottom: 26px; }
.office-block {
  padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.12);
}
.office-block:first-of-type { border-top: none; padding-top: 0; }
.office-country {
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--white);
  margin-bottom: 6px;
}
.office-detail { color: rgba(255,255,255,0.72); font-size: 13.5px; line-height: 1.7; }
.office-detail a { color: rgba(255,255,255,0.85); }
.office-detail a:hover { color: var(--red-light); }
.contact-form-card {
  background: var(--white); padding: 40px; border-radius: 10px; box-shadow: var(--shadow);
}
.form-title { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-family: var(--font-head); font-weight: 600; font-size: 12px;
  letter-spacing: 0.05em; color: var(--text-dark); margin-bottom: 6px; text-transform: uppercase;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 4px;
  font-size: 14px; color: var(--text-body); background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,32,47,0.1);
}

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--red); color: var(--white);
  padding: 60px 0;
}
.cta-strip-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-strip h3 { font-family: var(--font-head); font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
.cta-strip p { color: rgba(255,255,255,0.85); margin-top: 6px; }
.cta-strip .btn-white-outline { border-color: var(--white); color: var(--white); }
.cta-strip .btn-white-outline:hover { background: var(--white); color: var(--red); }

/* ── FOOTER ── */
footer {
  background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 70px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px;
}
.footer-logo img { height: 56px; margin-bottom: 18px; }
.footer-logo-text {
  font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--white);
  margin-bottom: 18px; letter-spacing: 0.04em;
}
.footer-logo-text span { color: var(--red-light); }
.footer-about { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 22px; max-width: 360px; }
.footer-social { display: flex; gap: 10px; }
.soc-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.soc-btn:hover { background: var(--red); transform: translateY(-2px); }
.soc-btn svg { width: 16px; height: 16px; fill: var(--white); }
.footer-col h5 {
  font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--white);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13.5px; color: rgba(255,255,255,0.65); transition: color 0.2s, padding-left 0.2s; }
.footer-col a:hover { color: var(--red-light); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  font-size: 13px;
}
.footer-copy { color: rgba(255,255,255,0.5); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: var(--red-light); }

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 26px rgba(37, 211, 102, 0.55); }
.wa-float svg { width: 28px; height: 28px; fill: var(--white); }

/* ── FADE-UP ANIMATION ── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ── PROCESS / TIMELINE ── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step {
  position: relative; padding: 30px 24px; background: var(--white);
  border-radius: 10px; border-top: 3px solid var(--red); box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.process-step:hover { transform: translateY(-6px); }
.process-step .step-num {
  font-family: var(--font-head); font-size: 38px; font-weight: 800; color: rgba(192,32,47,0.18);
  line-height: 1; margin-bottom: 10px;
}
.process-step h4 { font-family: var(--font-head); font-size: 17px; color: var(--text-dark); margin-bottom: 8px; }
.process-step p { color: var(--text-light); font-size: 13.5px; }

/* ── VALUE / FEATURE CARDS ── */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: var(--white); padding: 32px 28px; border-radius: 10px;
  box-shadow: var(--shadow); transition: transform 0.3s;
}
.value-card:hover { transform: translateY(-4px); }
.value-card .v-icon {
  width: 54px; height: 54px; border-radius: 12px;
  background: rgba(192, 32, 47, 0.1); color: var(--red);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.value-card .v-icon svg { width: 26px; height: 26px; }
.value-card h4 { font-family: var(--font-head); color: var(--text-dark); font-size: 18px; margin-bottom: 8px; }
.value-card p { color: var(--text-light); font-size: 14px; }

/* ── TEAM ── */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  background: var(--white); border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.3s;
}
.team-card:hover { transform: translateY(-4px); }
.team-photo {
  height: 280px; background-size: cover; background-position: center;
  background-color: var(--navy-light);
}
.team-body { padding: 22px; text-align: center; }
.team-name { font-family: var(--font-head); font-size: 17px; color: var(--text-dark); }
.team-role { font-size: 13px; color: var(--red); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

/* ── TESTIMONIALS ── */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--white); padding: 32px; border-radius: 10px;
  box-shadow: var(--shadow); position: relative;
}
.testimonial-card::before {
  content: '"'; position: absolute; top: -10px; left: 22px;
  font-family: serif; font-size: 90px; color: var(--red); line-height: 1; opacity: 0.4;
}
.testimonial-card p { color: var(--text-body); font-size: 14.5px; font-style: italic; margin-bottom: 18px; }
.testimonial-author { display: flex; gap: 12px; align-items: center; }
.testimonial-author .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
}
.testimonial-author .name { font-family: var(--font-head); font-weight: 700; color: var(--text-dark); font-size: 14px; }
.testimonial-author .role { font-size: 12px; color: var(--text-light); }

/* ── INDUSTRIES / SECTORS ── */
.industries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.industry-card {
  position: relative; height: 280px; border-radius: 10px; overflow: hidden;
  cursor: pointer;
}
.industry-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 0.5s;
}
.industry-card:hover .industry-bg { transform: scale(1.06); }
.industry-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,24,39,0.92) 0%, rgba(17,24,39,0.3) 100%);
}
.industry-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 26px; color: var(--white); }
.industry-info h4 { font-family: var(--font-head); font-size: 22px; margin-bottom: 6px; }
.industry-info p { font-size: 13px; color: rgba(255,255,255,0.8); }

/* ── FAQ ── */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border); padding: 18px 0;
}
.faq-q {
  font-family: var(--font-head); font-weight: 700; font-size: 16.5px; color: var(--text-dark);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 6px 0;
}
.faq-q::after {
  content: '+'; color: var(--red); font-size: 24px; font-weight: 400;
  transition: transform 0.3s; flex-shrink: 0;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 12px 0 6px; color: var(--text-light); font-size: 14.5px; }
.faq-item.open .faq-a { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .hero-stats-bar { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .services-grid, .products-grid, .pd-applications, .pd-gallery, .media-grid, .testimonial-grid, .industries-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card.wide { grid-column: span 2; flex-direction: column; }
  .product-card.wide .product-img, .product-card.wide .product-body { width: 100%; }
  .pd-variations { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .stats-row, .process-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-menu { min-width: 720px; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  nav.site-nav, .topbar-inner, .container, .hero { padding-left: 22px; padding-right: 22px; }
  .topbar-left, .topbar-right { gap: 14px; }
  .topbar-item { font-size: 11.5px; }
  .section-pad { padding: 70px 0; }
  .about-grid, .engineering-grid, .pd-hero, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap { max-width: 520px; }
  .about-img-float { display: none; }
  .about-features { grid-template-columns: 1fr; }
  .pd-specs { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 620px) {
  .services-grid, .products-grid, .projects-masonry, .media-grid, .industries-grid, .value-grid, .testimonial-grid, .pd-variations, .pd-gallery, .pd-applications { grid-template-columns: 1fr; }
  .why-grid, .stats-row, .process-grid, .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats-bar { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .proj-card.large { grid-column: span 1; height: 320px; }
  .topbar-left { display: none; }
  .topbar-right { width: 100%; justify-content: center; }
  .hero { min-height: 75vh; padding-top: 80px; padding-bottom: 60px; }
  .pd-cta { padding: 26px; flex-direction: column; align-items: flex-start; }
  .pd-cta-btns { width: 100%; }
}

/* ===========================================================
   Window Studio additions — image fixes, Canadian touches
   ========================================================= */

/* ── PRODUCT IMAGE — switch from CSS background to <img> for reliability ── */
.product-img {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--teal) 100%);
}
.product-img img,
.product-img .product-img-el {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img img,
.product-card:hover .product-img .product-img-el { transform: scale(1.05); }
.product-card.wide .product-img { min-height: 380px; height: auto; }
@media (max-width: 1100px) {
  .product-card.wide .product-img { min-height: 280px; }
}

/* Service & project images: use real <img> tags too */
.service-img { position: relative; overflow: hidden; }
.service-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.proj-bg { background-color: var(--navy-light); }

/* Product viewer hero & gallery items — keep background-image for these but
   make sure aspect ratios always render even when an image fails to load */
.pd-hero-img, .pd-gallery-item, .pd-var-img, .industry-bg, .media-bg, .about-img-main, .about-img-float, .eng-img {
  background-color: var(--navy-light);
}

/* ── Brand-specific component tweaks ── */
.nav-cta { background: var(--maple); }
.nav-cta:hover { background: var(--maple-dark); }

.btn-red { background: var(--teal); }
.btn-red:hover { background: var(--teal-dark); box-shadow: 0 8px 22px rgba(14, 116, 144, 0.35); }

.cta-strip { background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%); }
.cta-strip .btn-white-outline:hover { color: var(--teal); }

.section-kicker { color: var(--teal); }
.section-kicker::before { background: var(--maple); }
.section-title span { color: var(--teal); }
.divider-line { background: var(--maple); }

.hero-bg {
  background:
    linear-gradient(135deg, rgba(8,26,49,0.86) 0%, rgba(15,44,82,0.78) 50%, rgba(14,116,144,0.7) 100%),
    url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1800&q=80') center/cover no-repeat;
}
.hero-title span { color: var(--cyan); }
.hero-badge {
  background: rgba(213, 43, 30, 0.16);
  border-color: rgba(213, 43, 30, 0.55);
  color: #ffd2cc;
}

.page-header {
  background:
    linear-gradient(135deg, rgba(8,26,49,0.92), rgba(14,116,144,0.85)),
    url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1600&q=80') center/cover no-repeat;
}
.page-header h1 span { color: var(--cyan); }
.page-header .breadcrumbs a { color: var(--cyan); }

.ticker { background: var(--navy); }
.ticker-dot { color: var(--maple); opacity: 0.85; }

.stat-block .num { color: var(--cyan); }
.feat-check { background: rgba(14, 116, 144, 0.12); }
.feat-check svg { color: var(--teal); }

.service-icon { background: rgba(14, 116, 144, 0.12); }
.service-icon svg { color: var(--teal); }

.why-card { border-top-color: var(--maple); }
.why-icon { background: rgba(14, 116, 144, 0.12); }
.why-icon svg { color: var(--teal); }

.value-card .v-icon { background: rgba(14, 116, 144, 0.12); color: var(--teal); }

.product-tag { background: var(--maple); }
.products-category-title { border-bottom-color: var(--teal); color: var(--navy); }

.proj-cat { color: var(--cyan); }
.filter-btn:hover, .filter-btn.active { background: var(--teal); border-color: var(--teal); }

.pd-section-title { border-bottom-color: var(--teal); }
.pd-cat { color: var(--teal); }
.pd-app-card { border-left-color: var(--maple); }
.pd-cta { background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%); }

.process-step { border-top-color: var(--maple); }
.process-step .step-num { color: rgba(213, 43, 30, 0.18); }

.team-role { color: var(--teal); }
.testimonial-card::before { color: var(--maple); }

.contact-info-card { background: linear-gradient(160deg, var(--navy) 0%, var(--teal-dark) 100%); }
.contact-info-card a:hover { color: var(--cyan); }

.footer-col a:hover { color: var(--cyan); }
.footer-logo svg { width: 220px; height: auto; }

.faq-q::after { color: var(--teal); }
.about-exp-badge { background: var(--maple); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.14);
}

/* ── Maple leaf chip ── */
.maple-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 30px;
  background: rgba(213, 43, 30, 0.1);
  color: var(--maple); font-family: var(--font-head); font-weight: 600;
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
}
.maple-chip svg { width: 14px; height: 14px; fill: var(--maple); }

.canadian-strip {
  background: var(--white); border-top: 4px solid var(--maple);
  border-bottom: 1px solid var(--border);
  padding: 18px 0; text-align: center;
  font-family: var(--font-head); font-weight: 600; color: var(--navy);
  letter-spacing: 0.06em; font-size: 13px; text-transform: uppercase;
}
.canadian-strip svg { vertical-align: middle; margin: 0 8px -2px; width: 18px; height: 18px; fill: var(--maple); }

/* Top bar separator dots between right-side items */
.topbar-right .topbar-item { color: rgba(255,255,255,0.85); }

/* Improve service image crop for service grid (use real img tags) */
.service-img { background-color: var(--navy-light); }
.service-img::af