/* Simsquare Solutions — simsquare.ca */
:root {
  --brand: #3e8cb9;        /* logo blue – headings accent */
  --brand-dark: #2b6f97;
  --btn: #1a7fd6;          /* button blue */
  --btn-hover: #0f66b3;
  --navy: #021540;         /* services band / page banners */
  --navy-2: #032d66;       /* counters band */
  --ink: #1e2a3a;
  --text: #3b4656;
  --muted: #6b7686;
  --line: #dfe5ec;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --dark: #232323;         /* testimonials */
  --footer: #01061a;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(2, 21, 64, .10);
  --font-head: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --circuit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' fill='none' stroke='%233e8cb9' stroke-opacity='.22' stroke-width='1.4'%3E%3Cpath d='M0 40h60l20 20h60M160 60h80M20 120h40l20-20h40l20 20h100M0 200h90l20-20h50l20 20h60M60 0v40M200 120v80M120 140v100'/%3E%3Ccircle cx='140' cy='60' r='3'/%3E%3Ccircle cx='60' cy='40' r='3'/%3E%3Ccircle cx='200' cy='120' r='3'/%3E%3Ccircle cx='120' cy='140' r='3'/%3E%3Ccircle cx='90' cy='200' r='3'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.7 var(--font-body); color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--btn); text-decoration: none; }
a:hover { color: var(--btn-hover); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 960px; }
.center { text-align: center; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.ico { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 3px solid var(--btn); outline-offset: 2px; }
section { padding: 72px 0; }

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--btn); color: #fff; font: 600 15px/1 var(--font-body); padding: 14px 26px; border-radius: 6px; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--btn-hover); color: #fff; transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #eef4fa; color: var(--ink); }
.more { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.more-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e9eef4; color: var(--brand); transition: background .2s, color .2s; }
.more:hover .more-ico { background: var(--brand); color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.hdr { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand .logo { width: 200px; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 6px; align-items: center; }
.nav a { display: block; padding: 10px 12px; font: 700 13px/1 var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle { background: none; border: 0; padding: 4px; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.sub { position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; box-shadow: var(--shadow); border-top: 3px solid var(--brand); border-radius: 0 0 8px 8px; padding: 8px 0 !important; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { text-transform: none; font: 500 15px/1.2 var(--font-body); letter-spacing: 0; padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 28px; color: var(--ink); cursor: pointer; padding: 6px; }
.nav-toggle .ico + .ico { display: none; }
.pilot-tab { position: fixed; left: 0; top: 60%; z-index: 40; writing-mode: vertical-rl; transform: rotate(180deg); background: var(--btn); color: #fff; font: 600 13px/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; padding: 16px 11px; border-radius: 0 6px 6px 0; box-shadow: var(--shadow); }
.pilot-tab:hover { background: var(--btn-hover); color: #fff; }

@media (max-width: 960px) {
  .hdr { height: 72px; }
  .brand .logo { width: 160px; }
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 72px 0 0 0; background: #fff; transform: translateX(100%); transition: transform .25s; overflow-y: auto; }
  .nav.open { transform: none; }
  .nav-open .nav-toggle .ico:first-child { display: none; }
  .nav-open .nav-toggle .ico + .ico { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; padding: 12px 20px 40px; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a { padding: 16px 0; font-size: 15px; }
  .has-sub { flex-wrap: wrap; justify-content: space-between; }
  .sub-toggle { padding: 12px; }
  .sub { position: static; flex-basis: 100%; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; display: none; padding: 0 0 10px 12px !important; }
  .has-sub.open .sub { display: block; }
  .has-sub.open .sub-toggle { transform: rotate(180deg); }
  .sub a { padding: 10px 0; }
  .pilot-tab { top: auto; bottom: 90px; font-size: 11px; padding: 12px 8px; }
}

/* ---------- hero slider ---------- */
.hero { position: relative; height: min(78vh, 720px); min-height: 480px; overflow: hidden; background: var(--navy); padding: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; display: flex; align-items: center; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,10,30,.78) 0%, rgba(1,10,30,.45) 55%, rgba(1,10,30,.15) 100%); }
.slide-in { position: relative; z-index: 2; color: #fff; }
.slide-h { color: #fff; font-size: clamp(30px, 4.6vw, 56px); font-weight: 700; max-width: 760px; margin-bottom: 18px; }
.slide-in p { max-width: 620px; font-size: clamp(16px, 1.6vw, 19px); color: #e6edf5; margin-bottom: 28px; }
.is-active .slide-h, .is-active .slide-in p, .is-active .slide-in .btn { animation: rise .8s both; }
.is-active .slide-in p { animation-delay: .12s; }
.is-active .slide-in .btn { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.hero-nav:hover { background: rgba(255,255,255,.3); }
.hero-nav.prev { left: 16px; } .hero-nav.prev .ico { transform: rotate(180deg); }
.hero-nav.next { right: 16px; }
.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.hero-dots button[aria-current="true"] { background: #fff; }
@media (max-width: 640px) { .hero-nav { display: none; } .hero { min-height: 520px; } }

/* ---------- section titles ---------- */
.sec-title { text-align: center; margin-bottom: 44px; }
.sec-title h2 { font-size: clamp(26px, 3vw, 34px); text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.sec-title h2 span { color: var(--brand); }
.sec-title p { font-weight: 600; color: var(--ink); margin: 0 0 6px; font-size: 15px; }
.sec-title .iso-line { font-family: var(--font-body); font-weight: 600; font-size: clamp(17px, 2vw, 22px); color: #777; }
.bar { display: block; width: 36px; height: 3px; background: var(--ink); margin: 18px auto 0; border-radius: 2px; }
.sec-title.left { text-align: left; } .sec-title.left .bar { margin-left: 0; }
.sec-title.light h2, .sec-title.light p { color: #fff; } .sec-title.light .bar { background: #fff; }
.h-accent { color: var(--brand); font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; }
.h-accent.big { font-size: clamp(28px, 3vw, 38px); margin-bottom: 24px; }

/* ---------- service cards ---------- */
.circuit { background: var(--navy) var(--circuit); background-size: 240px; }
.circuit-light { background: var(--bg-soft) var(--circuit); background-size: 260px; }
.services-band { padding: 56px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1040px; margin: 0 auto; }
.card { background: #fff; border-radius: var(--radius); padding: 26px 26px 22px; display: flex; flex-direction: column; box-shadow: 0 6px 24px rgba(0,0,0,.18); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.28); }
.card-link { color: inherit; }
.card-ico { height: 70px; width: auto; margin-bottom: 22px; }
.card h3 { font: 600 16px/1.3 var(--font-body); text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.card-link:hover h3 { color: var(--brand); }
.card p { font-size: 14.5px; color: var(--muted); flex: 1; margin-bottom: 18px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- welcome ---------- */
.welcome { background: var(--bg-soft); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col + .two-col { margin-top: 64px; }
.two-col.reverse > :first-child { order: 2; }
.prose p { color: var(--text); }
.prose strong { color: var(--ink); }
.welcome .prose p { color: #1f1f1f; }
.welcome-img img, .why-img img { border-radius: 6px; box-shadow: var(--shadow); }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 32px; } .two-col.reverse > :first-child { order: 0; } }

/* ---------- stats ---------- */
.stats { background: var(--navy-2); padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 42px 12px; color: #fff; border-left: 2px solid rgba(62,140,185,.65); }
.stat:first-child { border-left: 0; }
.stat .ico { font-size: 42px; color: #5aa6d6; margin-bottom: 12px; }
.stat strong { font: 700 clamp(30px, 3.4vw, 40px)/1.1 var(--font-head); }
.stat > span { font-weight: 500; font-size: 15px; margin-top: 6px; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 2px solid rgba(62,140,185,.4); } }

/* ---------- industries ---------- */
.industries { background: #f2f3f5; }

/* ---------- testimonials ---------- */
.testimonials { background: var(--dark); color: #e9e9e9; }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.t-card { margin: 0; text-align: center; display: flex; flex-direction: column; }
.stars { color: #f5b942; display: flex; justify-content: center; gap: 2px; font-size: 17px; margin-bottom: 16px; }
.t-card blockquote { margin: 0 0 18px; position: relative; flex: 1; padding: 0 12px 0 28px; }
.t-card blockquote > .ico { position: absolute; left: 0; top: 2px; color: var(--brand); font-size: 22px; }
.t-card blockquote p { font-size: 15.5px; line-height: 1.75; margin: 0; }
.t-card figcaption strong { display: block; font: 700 20px/1.3 var(--font-head); color: #fff; }
.t-card figcaption span { color: #5aa6d6; font-weight: 600; font-size: 15px; }
@media (max-width: 900px) { .t-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* ---------- clients ---------- */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); margin-bottom: 72px; }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: scroll 32s linear infinite; padding: 10px 0 18px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(calc(-50% - 11px)); } }
.logo-box { width: 180px; height: 150px; flex: none; display: grid; place-items: center; background: #fff; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.12); padding: 16px; }
.logo-box img { max-height: 100px; width: auto; object-fit: contain; }
.partner { display: flex; justify-content: center; }
.partner img { width: 220px; }

/* ---------- why ---------- */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; align-items: center; gap: 14px; padding: 6px 0; font-weight: 600; color: var(--ink); font-size: 15.5px; }
.checks .ico { font-size: 22px; color: var(--brand); }
.why-img { display: flex; justify-content: center; }
.why-img img { max-height: 560px; width: auto; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 20px; font: 600 16px/1.4 var(--font-body); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--brand); border-bottom: 1px solid var(--line); }
.faq-ico { display: grid; transition: transform .2s; }
.faq details[open] .faq-ico { transform: rotate(45deg); }
.faq-a { padding: 16px 20px 6px; }
.faq-a p { color: var(--text); }

/* ---------- CTA + footer ---------- */
.cta-wrap { padding: 0; background: linear-gradient(#fff 50%, var(--footer) 50%); }
.cta { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; text-align: center; padding: 30px 32px; border-radius: 10px; background: linear-gradient(90deg, #4cb4f7 0%, #6a86e0 55%, #7a4bc0 100%); box-shadow: var(--shadow); }
.cta p { margin: 0; color: #fff; font: 600 clamp(17px, 2vw, 21px)/1.3 var(--font-body); }
.site-footer { background: var(--footer); color: #e6e9ef; }
.ftr { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1.1fr; gap: 40px; padding: 64px 20px 56px; }
.ftr .logo { width: 180px; margin-bottom: 18px; }
.ftr h2 { color: #fff; font: 600 19px/1.3 var(--font-body); margin-bottom: 18px; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 8px; }
.ftr a { color: #e6e9ef; }
.ftr a:hover { color: #7cc1ef; }
.ftr-about p { max-width: 280px; }
.ftr-contact li { display: flex; gap: 10px; align-items: flex-start; }
.ftr-contact .ico { margin-top: 6px; color: #fff; }
.ftr-contact a { word-break: break-word; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.soc { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff !important; font-size: 16px; transition: transform .2s; }
.soc:hover { transform: translateY(-2px); }
.soc-facebook { background: #3b5998; } .soc-x { background: #16405b; } .soc-linkedin { background: #0a7fbe; }
.soc-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.copy { background: #f1f1f1; color: #555; text-align: center; font-size: 14px; padding: 16px 0; }
@media (max-width: 900px) { .ftr { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr { grid-template-columns: 1fr; gap: 28px; } .cta { gap: 18px; } }

/* ---------- page banners ---------- */
.page-banner { background: var(--navy) var(--circuit); background-size: 240px; text-align: center; padding: 56px 0 48px; }
.page-banner h1 { color: #fff; font: 500 clamp(32px, 4vw, 44px)/1.15 var(--font-body); margin-bottom: 10px; }
.crumbs { display: flex; justify-content: center; gap: 8px; text-transform: uppercase; font-weight: 600; font-size: 14px; color: #fff; }
.crumbs a { color: #cfd8e6; }
.crumbs a:hover { color: #fff; }

/* ---------- service pages ---------- */
.svc-hero { position: relative; text-align: center; padding: 96px 0 84px; background: var(--navy) var(--bg) center/cover no-repeat; color: #fff; }
.svc-hero::before { content: ""; position: absolute; inset: 0; background: rgba(5, 14, 32, .62); }
.svc-hero .container { position: relative; }
.svc-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.svc-hero .tagline { font: 600 clamp(16px, 1.8vw, 20px)/1.4 var(--font-body); margin: 0; }
.svc-hero .bar { background: #fff; margin: 22px auto 28px; }
.svc-hero .crumbs { margin-top: 6px; }
.svc-intro { background: var(--bg-soft); padding-bottom: 48px; }
.svc-intro .prose, .svc-img { max-width: 1040px; margin: 0 auto; }
.svc-intro .prose p { font-size: 15.5px; }
.svc-intro .extra { margin-top: 28px; }
.svc-img { margin-top: 28px; }
.features { padding: 64px 0; }
.features .h-accent.center { text-align: center; margin-bottom: 36px; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; max-width: 1040px; margin: 0 auto; }
.feat h3 { color: var(--brand); font-size: 21px; font-weight: 700; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--brand); }
.feat p { font-size: 15px; color: var(--text); margin: 0; }
@media (max-width: 760px) { .feat-grid { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about-mv .prose p, .iso-sec .prose p { font-size: 16px; }
.iso-sec { background: var(--bg-soft); }
.iso-sec .lead { font-size: 18px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.member { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; text-align: center; }
.avatar { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; margin: 0 auto 18px; background: linear-gradient(135deg, var(--brand), var(--navy-2)); display: grid; place-items: center; border: 4px solid #eaf2f8; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar span { color: #fff; font: 700 44px/1 var(--font-head); }
.member h3 { font-size: 22px; margin-bottom: 4px; }
.member .role { color: var(--brand); font-weight: 600; margin-bottom: 12px; }
.member p:last-child { font-size: 14.5px; margin: 0; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 32px; margin-top: 24px; align-items: start; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; padding: 8px 18px; }
.office h3 { color: var(--brand); font-size: 24px; margin-bottom: 14px; }
.office ul { list-style: none; margin: 0; padding: 0; }
.office li { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.office li div { display: flex; flex-direction: column; line-height: 1.5; }
.office li strong { color: var(--ink); font-size: 14px; }
.office li a, .office li span:not(.dia) { color: var(--ink); word-break: break-word; }
.dia { width: 36px; height: 36px; flex: none; display: grid; place-items: center; background: var(--brand); color: #fff; transform: rotate(45deg); border-radius: 4px; margin-left: 4px; }
.dia .ico { transform: rotate(-45deg); }
.form-card { background: #eef1f5; border-radius: 6px; padding: 28px; }
.cform { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cform input, .cform textarea { width: 100%; font: 400 15px/1.4 var(--font-body); color: var(--ink); padding: 13px 12px; border: 1px solid #d5dbe3; border-radius: 4px; background: #fff; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(62,140,185,.18); }
.cform textarea { resize: vertical; min-height: 130px; }
.cform .btn { justify-self: start; background: #0a6ea8; }
.cform .btn:hover { background: #075a8a; }
.hp { position: absolute; left: -9999px; }
.quote-img { display: flex; justify-content: center; margin-top: 56px; }
.quote-img img { width: 420px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .offices { grid-template-columns: 1fr; padding: 0; } .row2 { grid-template-columns: 1fr; } }

.simple { padding: 80px 0; }

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