/* =========================================================
   ComplianceOne Canada — Brand Stylesheet
   Navy  : #0B2D5C (primary) / #071F42 (deep)
   Red   : #BD1A1C (primary) / #8F1315 (deep)
   ========================================================= */

:root{
  --navy:        #0B2D5C;
  --navy-deep:   #071F42;
  --navy-soft:   #E8EDF5;
  --red:         #BD1A1C;
  --red-deep:    #8F1315;
  --red-soft:    #FBEAEA;
  --white:       #FFFFFF;
  --off-white:   #F7F8FB;
  --ink:         #1B2430;
  --gray:        #5B6472;
  --gray-light:  #E3E7ED;
  --maple:       #C8202F;

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(11,45,92,0.07);
  --shadow-md: 0 10px 30px rgba(11,45,92,0.12);
  --container: 1160px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--white);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--navy);
  line-height:1.2;
  margin:0 0 0.6em;
}
h1{ font-size:clamp(2rem, 4vw, 3.1rem); font-weight:700; letter-spacing:-0.01em; }
h2{ font-size:clamp(1.5rem, 2.6vw, 2.1rem); font-weight:700; }
h3{ font-size:1.25rem; font-weight:600; }
p{ margin:0 0 1em; color:var(--gray); }
a{ color:var(--red); text-decoration:none; }
a:hover{ color:var(--red-deep); }
ul{ margin:0; padding:0; list-style:none; }
img{ max-width:100%; display:block; }
.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
.section{ padding:76px 0; }
.section-tight{ padding:48px 0; }
.section-alt{ background:var(--off-white); }
.section-navy{ background:linear-gradient(155deg,var(--navy) 0%,var(--navy-deep) 100%); color:var(--white); }
.section-navy h2,.section-navy h3{ color:var(--white); }
.section-navy p{ color:rgba(255,255,255,0.82); }

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-body);
  font-size:0.75rem;
  font-weight:700;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--red);
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:22px; height:2px;
  background:var(--red);
  display:inline-block;
}
.section-navy .eyebrow{ color:#FF8A8C; }
.section-navy .eyebrow::before{ background:#FF8A8C; }

.lede{ font-size:1.15rem; max-width:62ch; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-body);
  font-weight:600;
  font-size:0.98rem;
  padding:14px 28px;
  border-radius:999px;
  border:2px solid transparent;
  cursor:pointer;
  transition:all .18s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--red); color:var(--white); }
.btn-primary:hover{ background:var(--red-deep); color:var(--white); transform:translateY(-1px); }
.btn-outline{ background:transparent; border-color:var(--navy); color:var(--navy); }
.btn-outline:hover{ background:var(--navy); color:var(--white); }
.btn-outline-light{ background:transparent; border-color:rgba(255,255,255,0.55); color:var(--white); }
.btn-outline-light:hover{ background:var(--white); color:var(--navy); }
.btn-block{ width:100%; justify-content:center; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--white);
  border-bottom:1px solid var(--gray-light);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:10px 24px;
  max-width:var(--container);
  margin:0 auto;
}
.brand{ display:flex; align-items:center; flex-shrink:0; }
.brand img{ height:56px; width:auto; display:block; }

.main-nav{
  display:flex;
  align-items:center;
  gap:22px;
  flex:1;
  justify-content:flex-end;
}
.main-nav ul{ display:flex; align-items:center; gap:2px; }
.main-nav a{
  color:var(--navy);
  font-weight:600;
  font-size:0.93rem;
  padding:9px 14px;
  border-radius:8px;
  transition:background .15s ease, color .15s ease;
  white-space:nowrap;
}
.main-nav a:hover{ background:var(--navy-soft); color:var(--navy); }
.main-nav a.active{ background:var(--navy); color:var(--white); }
.nav-cta{
  flex-shrink:0;
  margin-left:6px;
  padding-left:22px;
  border-left:1px solid var(--gray-light);
}
.nav-cta.btn{ padding:11px 22px; font-size:0.9rem; }

.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  width:40px; height:40px;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
  flex-shrink:0;
}
.nav-toggle span{ width:24px; height:2px; background:var(--navy); display:block; transition:transform .2s ease, opacity .2s ease; }
.site-header.nav-open .nav-toggle span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2){ opacity:0; }
.site-header.nav-open .nav-toggle span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  background:linear-gradient(155deg,var(--navy) 0%, var(--navy-deep) 68%);
  color:var(--white);
  overflow:hidden;
}
.hero::after{
  content:"";
  position:absolute;
  right:-160px; top:-160px;
  width:520px; height:520px;
  border-radius:50%;
  background:radial-gradient(circle at 30% 30%, rgba(200,32,47,0.35), rgba(200,32,47,0) 70%);
  pointer-events:none;
}
.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns:1.15fr 0.85fr;
  gap:48px;
  align-items:center;
  padding:88px 24px 76px;
  max-width:var(--container);
  margin:0 auto;
}
.hero h1{ color:var(--white); }
.hero .lede{ color:rgba(255,255,255,0.85); }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; margin-top:28px; }
.hero-badges{ display:flex; gap:22px; margin-top:38px; flex-wrap:wrap; }
.hero-badge{ display:flex; align-items:center; gap:10px; font-size:0.88rem; color:rgba(255,255,255,0.8); }
.hero-badge .dot{ width:8px; height:8px; border-radius:50%; background:var(--maple); flex-shrink:0; }
.hero-art{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-art img{
  width:100%;
  max-width:420px;
  filter:drop-shadow(0 24px 40px rgba(0,0,0,0.35));
}

/* ---------- Page header (inner pages) ---------- */
.page-header{
  background:linear-gradient(155deg,var(--navy) 0%, var(--navy-deep) 100%);
  color:var(--white);
  padding:64px 0 56px;
}
.page-header h1{ color:var(--white); margin-bottom:0.3em; }
.breadcrumb{ font-size:0.85rem; color:rgba(255,255,255,0.65); margin-bottom:18px; }
.breadcrumb a{ color:rgba(255,255,255,0.85); }
.breadcrumb a:hover{ color:var(--white); }

/* ---------- Who we help strip ---------- */
.audience-strip{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}
.audience-chip{
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.18);
  color:var(--white);
  font-size:0.85rem;
  padding:8px 16px;
  border-radius:999px;
}

/* ---------- Two-track service badges (mirrors logo iconography) ---------- */
.tracks{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
}
.track-card{
  background:var(--white);
  border:1px solid var(--gray-light);
  border-radius:var(--radius-lg);
  padding:36px 32px;
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease, box-shadow .18s ease;
}
.track-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.track-icon{
  width:58px; height:58px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
}
.track-icon svg{ width:28px; height:28px; }
.track-card.navy-track .track-icon{ background:var(--navy); }
.track-card.red-track .track-icon{ background:var(--red); }
.track-card.navy-track h3{ color:var(--navy); }
.track-card.red-track h3{ color:var(--red); }
.track-list{ margin-top:16px; }
.track-list li{
  display:flex; align-items:flex-start; gap:10px;
  padding:8px 0;
  border-top:1px solid var(--gray-light);
  color:var(--ink);
  font-size:0.96rem;
}
.track-list li:first-child{ border-top:none; }
.track-list li svg{ flex-shrink:0; margin-top:3px; width:16px; height:16px; }
.track-card.navy-track .track-list li svg{ color:var(--navy); }
.track-card.red-track .track-list li svg{ color:var(--red); }
.track-foot{ margin-top:22px; }

/* ---------- Feature grid ---------- */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.feature-card{
  background:var(--white);
  border:1px solid var(--gray-light);
  border-radius:var(--radius);
  padding:28px;
  box-shadow:var(--shadow-sm);
}
.feature-card .num{
  font-family:var(--font-display);
  font-weight:700;
  font-size:0.8rem;
  color:var(--red);
  letter-spacing:0.08em;
}
.feature-card h3{ margin-top:8px; }

/* ---------- Section header ---------- */
.section-head{ max-width:760px; margin-bottom:44px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- CTA band ---------- */
.cta-band{
  background:linear-gradient(120deg, var(--red) 0%, var(--red-deep) 100%);
  border-radius:var(--radius-lg);
  padding:48px 44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  color:var(--white);
}
.cta-band h2{ color:var(--white); margin-bottom:6px; }
.cta-band p{ color:rgba(255,255,255,0.9); margin-bottom:0; }
.cta-band .btn-primary{ background:var(--white); color:var(--red); }
.cta-band .btn-primary:hover{ background:var(--off-white); color:var(--red-deep); }

/* ---------- Info blocks (for Dissolved Corporations page) ---------- */
.info-block{
  display:grid;
  grid-template-columns:44px 1fr;
  gap:18px;
  padding:26px 0;
  border-top:1px solid var(--gray-light);
}
.info-block:first-child{ border-top:none; }
.info-block .marker{
  width:44px; height:44px; border-radius:50%;
  background:var(--navy-soft);
  color:var(--navy);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700;
}

/* ---------- Steps ---------- */
.steps{ counter-reset:step; display:flex; flex-direction:column; gap:0; }
.step{
  display:grid; grid-template-columns:52px 1fr; gap:20px;
  padding:22px 0;
  border-top:1px solid var(--gray-light);
}
.step:first-child{ border-top:none; }
.step .step-num{
  counter-increment:step;
  width:52px; height:52px; border-radius:50%;
  background:var(--red);
  color:var(--white);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; font-size:1.1rem;
}

/* ---------- Testimonial / quote strip ---------- */
.quote-strip{
  border-left:4px solid var(--red);
  padding:6px 0 6px 24px;
  font-family:var(--font-display);
  font-size:1.25rem;
  color:var(--navy);
  font-weight:500;
}

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns:0.95fr 1.05fr; gap:44px; }
.contact-card{
  background:var(--white);
  border:1px solid var(--gray-light);
  border-radius:var(--radius-lg);
  padding:8px 0;
}
.contact-row{
  display:flex; align-items:flex-start; gap:16px;
  padding:18px 4px;
  border-top:1px solid var(--gray-light);
}
.contact-row:first-child{ border-top:none; }
.contact-row .ic{
  width:42px; height:42px; border-radius:10px;
  background:var(--navy-soft); color:var(--navy);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.contact-row .ic svg{ width:20px; height:20px; }
.contact-row strong{ display:block; color:var(--navy); font-size:0.85rem; text-transform:uppercase; letter-spacing:0.06em; }
.contact-row a{ color:var(--ink); font-weight:500; }
.contact-row a:hover{ color:var(--red); }

.form-card{
  background:var(--off-white);
  border:1px solid var(--gray-light);
  border-radius:var(--radius-lg);
  padding:32px;
}
.form-row{ margin-bottom:18px; }
.form-row label{ display:block; font-size:0.85rem; font-weight:600; color:var(--navy); margin-bottom:6px; }
.form-row input,.form-row select,.form-row textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--gray-light);
  border-radius:8px;
  font-family:var(--font-body);
  font-size:0.96rem;
  background:var(--white);
  color:var(--ink);
}
.form-row input:focus,.form-row select:focus,.form-row textarea:focus{
  outline:none; border-color:var(--navy); box-shadow:0 0 0 3px var(--navy-soft);
}
.form-2col{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-note{ font-size:0.82rem; color:var(--gray); margin-top:14px; }
.alert{
  padding:14px 18px; border-radius:8px; margin-bottom:22px; font-size:0.95rem;
}
.alert-success{ background:#E7F6EC; color:#1E6B3A; border:1px solid #BEE6CB; }
.alert-error{ background:var(--red-soft); color:var(--red-deep); border:1px solid #F3C7C8; }

/* ---------- Footer ---------- */
.site-footer{
  background:var(--navy-deep);
  color:rgba(255,255,255,0.75);
  padding-top:56px;
}
.footer-top{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1.1fr;
  gap:36px;
  padding-bottom:40px;
  border-bottom:1px solid rgba(255,255,255,0.12);
}
.footer-brand img{ height:50px; margin-bottom:14px; }
.footer-brand p{ color:rgba(255,255,255,0.6); font-size:0.9rem; max-width:32ch; }
.footer-col h4{ color:var(--white); font-family:var(--font-body); font-size:0.85rem; letter-spacing:0.08em; text-transform:uppercase; margin-bottom:16px; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col a{ color:rgba(255,255,255,0.72); font-size:0.94rem; }
.footer-col a:hover{ color:var(--white); }
.footer-bottom{
  display:flex; align-items:center; justify-content:space-between;
  padding:22px 0; font-size:0.82rem; color:rgba(255,255,255,0.5);
  flex-wrap:wrap; gap:10px;
}
.footer-bottom a{ color:rgba(255,255,255,0.6); }
.tagline-strip{
  text-align:center; font-size:0.78rem; letter-spacing:0.14em; text-transform:uppercase;
  color:rgba(255,255,255,0.45); padding-bottom:18px;
}
.tagline-strip .maple{ color:var(--maple); }

/* ---------- Skip link ---------- */
.skip-link{
  position:absolute; left:-999px; top:0; background:var(--navy); color:var(--white);
  padding:10px 16px; z-index:1000; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .hero-inner{ grid-template-columns:1fr; padding-top:48px; }
  .hero-art{ order:-1; }
  .hero-art img{ max-width:260px; }
  .tracks{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr; }
  .grid-2{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr 1fr; }
  .form-2col{ grid-template-columns:1fr; }
}
@media (max-width: 760px){
  .brand img{ height:44px; }
  .main-nav{ display:none; }
  .nav-toggle{ display:flex; }
  .site-header.nav-open .main-nav{
    display:flex; flex-direction:column; align-items:stretch;
    position:absolute; top:100%; left:0; right:0;
    background:var(--white); border-bottom:1px solid var(--gray-light);
    box-shadow:var(--shadow-md);
    padding:10px 14px 16px;
    gap:0;
  }
  .site-header.nav-open .main-nav ul{ flex-direction:column; align-items:stretch; gap:2px; }
  .site-header.nav-open .main-nav a{ display:block; padding:13px 16px; border-radius:8px; }
  .site-header.nav-open .nav-cta{
    margin:12px 0 0; padding:0; border-left:none; border-top:1px solid var(--gray-light);
    padding-top:12px;
  }
  .site-header.nav-open .nav-cta.btn{ width:100%; justify-content:center; }
  .footer-top{ grid-template-columns:1fr; }
  .cta-band{ flex-direction:column; align-items:flex-start; text-align:left; }
}
@media (max-width: 480px){
  .section{ padding:52px 0; }
  .hero-inner{ padding:40px 20px 52px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .track-card,.btn{ transition:none; }
}
