/* ==========================================================================
   Shajani CPA × STEP Calgary — Landing Page
   Mobile-first, navy + white/cream premium palette (no accent color)
   ========================================================================== */

:root {
  --navy:        #0A1F3D;
  --navy-deep:   #071630;
  --navy-2:      #122A4D;
  --navy-line:   #1d3a5f;
  --cream:       #F1EDE4;
  --paper:       #F7F5F0;
  --paper-2:     #efeade;
  --white:       #ffffff;
  --ink:         #10233f;
  --ink-soft:    #45566e;
  --ink-mute:    #6b7a90;
  --on-navy:     #e7edf6;
  --on-navy-mute:#9db0cb;

  --maxw: 1180px;
  --pad: 22px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(10,31,61,.06), 0 12px 30px -18px rgba(10,31,61,.28);
  --shadow-float: 0 18px 44px -18px rgba(10,31,61,.55);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  font-family: var(--sans);
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  padding: 14px 26px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--white); color: var(--navy-deep);
  box-shadow: 0 12px 26px -14px rgba(0,0,0,.55);
}
.btn-primary:hover { background: #e9edf3; }
.btn-ghost {
  background: transparent; color: var(--on-navy);
  border-color: rgba(157,176,203,.4);
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-navy {
  background: var(--navy); color: var(--white);
  box-shadow: 0 12px 26px -14px rgba(10,31,61,.7);
}
.btn-navy:hover { background: var(--navy-2); }
.btn-navy svg { transition: transform .2s ease; }
.btn-navy:hover svg { transform: translate(2px, -2px); }
.btn-block { width: 100%; }

/* ---------- Section eyebrows / titles ---------- */
.section-eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  letter-spacing: -.01em; color: var(--ink);
  max-width: 20ch;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,31,61,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--navy-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { color: var(--white); display: flex; align-items: center; }
.logo img { height: 46px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: var(--on-navy-mute); font-weight: 500; font-size: .92rem;
  padding: 8px 12px; border-radius: 8px; transition: color .2s;
}
.site-nav a:hover { color: var(--white); }
.site-nav .nav-cta {
  color: var(--navy-deep); background: var(--white); font-weight: 600;
}
.site-nav .nav-cta:hover { background: #e9edf3; color: var(--navy-deep); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background:
    radial-gradient(120% 80% at 85% -10%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-navy);
  padding: 44px 0 56px;
  overflow: hidden;
  position: relative;
}
.hero-grid { display: grid; gap: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 600; letter-spacing: .05em;
  color: var(--on-navy);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.24);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px rgba(255,255,255,.16); }
.hero-copy { position: relative; z-index: 5; }
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 6.6vw, 3rem);
  letter-spacing: -.015em; color: var(--white);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.1rem); color: var(--on-navy-mute);
  max-width: 40ch; margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero media — free-standing 3D cutout over a circular backdrop */
.hero-media { position: relative; }
.hero-stage {
  position: relative;
  width: 108%; margin-left: -4%;
  margin-bottom: -56px;            /* seat the figures flush to the hero's bottom edge */
  aspect-ratio: 1500 / 1120;
  display: flex; align-items: flex-end; justify-content: center;
}
/* White disc so the partners stand out sharply against the dark hero */
.hero-disc {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  width: 90%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%,
    #ffffff 0%, #f6f3ec 54%, rgba(246,243,236,.5) 70%, rgba(246,243,236,0) 78%);
}
.hero-ring {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  width: 96%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
}
/* Soft contact shadow on the ground for grounding/depth */
.hero-ground {
  position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%);
  width: 64%; height: 7%; border-radius: 50%;
  background: rgba(0,0,0,.5); filter: blur(20px);
}
.hero-stage picture { display: contents; }
.hero-cutout {
  position: relative; z-index: 1;
  width: 100%; height: auto; max-width: none;
  filter: drop-shadow(0 26px 34px rgba(0,0,0,.42));
}

/* Partner name tags floating over the portrait */
.namechip {
  position: absolute; z-index: 4;
  background: rgba(255,255,255,.97);
  color: var(--navy);
  font-family: var(--serif); font-weight: 600; font-size: .95rem;
  letter-spacing: -.005em; white-space: nowrap;
  border-radius: 999px;
  box-shadow: var(--shadow-float);
  padding: 9px 18px;
  backdrop-filter: blur(6px);
}
.namechip-left  { left: -6px; top: 52%; }
.namechip-right { right: -6px; top: 44%; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { background: var(--navy-deep); border-top: 1px solid var(--navy-line); padding: 30px 0; overflow: hidden; }
.marquee {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex; flex: 0 0 auto; align-items: center; width: max-content;
  animation: stats-marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.stat {
  flex: 0 0 auto; position: relative;
  display: flex; flex-direction: column; gap: 5px;
  text-align: center; padding: 0 clamp(26px, 5vw, 58px);
}
.stat::after {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 40px; background: rgba(255,255,255,.14);
}
.stat-num {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--white); line-height: 1;
  letter-spacing: -.01em;
}
.stat-label { font-size: .84rem; color: var(--on-navy-mute); font-weight: 500; white-space: nowrap; }
.stat-label em { font-style: normal; color: var(--on-navy); }
@keyframes stats-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}

/* ==========================================================================
   Why
   ========================================================================== */
.why { background: var(--paper); padding: 64px 0; }
.why-grid { display: grid; gap: 40px; }
.why-copy { max-width: 34rem; }
.why .section-title { max-width: 20ch; margin-bottom: 22px; }
.why-body { font-size: clamp(1.02rem, 2.4vw, 1.15rem); color: var(--ink-soft); line-height: 1.7; }
.why-body strong { color: var(--ink); font-weight: 600; }

/* Accordion */
.accordion { border-top: 1px solid rgba(10,31,61,.12); }
.acc-item { border-bottom: 1px solid rgba(10,31,61,.12); }
.acc-head {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 4px; text-align: left;
  font-family: var(--sans); color: var(--ink);
}
.acc-title { font-size: 1.08rem; font-weight: 600; line-height: 1.3; transition: color .2s; }
.acc-head:hover .acc-title { color: var(--navy); }
.acc-item.is-open .acc-title { color: var(--navy); }
/* +/- icon */
.acc-icon { position: relative; flex: 0 0 auto; width: 22px; height: 22px; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 13px; height: 2px; border-radius: 2px; background: var(--ink-soft);
  transform: translate(-50%, -50%); transition: transform .3s ease, background .2s;
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.is-open .acc-icon::before,
.acc-item.is-open .acc-icon::after { background: var(--navy); }
.acc-item.is-open .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
/* animated panel via grid-rows */
.acc-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .34s ease;
}
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel-inner { overflow: hidden; }
.acc-panel-inner p {
  padding: 0 4px 22px; margin-top: -2px;
  font-size: .98rem; color: var(--ink-soft); line-height: 1.65;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { background: var(--paper-2); padding: 64px 0; }
.services .section-title { margin-bottom: 34px; }
.services-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.card {
  background: var(--white); border: 1px solid rgba(10,31,61,.08);
  border-radius: var(--radius); padding: 22px 22px 20px;
  box-shadow: var(--shadow-card);
  position: relative; transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(10,31,61,.28); box-shadow: 0 20px 40px -22px rgba(10,31,61,.4); }
.card-mark {
  font-family: var(--serif); font-size: .95rem; font-weight: 600;
  color: var(--ink-mute);
  display: inline-block; margin-bottom: 12px;
  border-bottom: 2px solid rgba(10,31,61,.15); padding-bottom: 2px;
}
.card h3 { font-size: 1.12rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card p { font-size: .94rem; color: var(--ink-soft); }
.services-more {
  margin-top: 34px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.services-more p { font-size: 1rem; color: var(--ink-soft); }
.card-tag {
  font-size: .64rem; font-weight: 700; letter-spacing: .08em;
  color: var(--ink-soft); background: transparent;
  border: 1px solid rgba(10,31,61,.28);
  padding: 2px 7px; border-radius: 999px;
}

/* ==========================================================================
   Credentials
   ========================================================================== */
.credentials { background: var(--navy); color: var(--on-navy); padding: 66px 0; }
.credentials .section-eyebrow { color: var(--white); }
.credentials .section-title { color: var(--white); }
.credentials-grid { display: grid; gap: 40px; }
.cred-list { margin-top: 28px; display: grid; gap: 16px; }
.cred-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 1rem; color: var(--on-navy); }
.cred-list strong { color: var(--white); font-weight: 600; }
.cred-tick {
  flex: 0 0 auto; width: 24px; height: 24px; margin-top: 1px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--white);
  border: 1px solid rgba(255,255,255,.35); font-size: .8rem; font-weight: 700;
}
.cred-badge { display: flex; flex-direction: column; align-items: center; gap: 14px; }
/* white matted plaque so the navy award badge separates from the navy section */
.cred-badge-frame {
  width: 100%; background: var(--white);
  border-radius: var(--radius-lg); padding: 12px;
  box-shadow: var(--shadow-float);
}
.cred-badge-frame img {
  width: 100%; height: auto; display: block;
  border-radius: 10px;
}
.cred-badge-cap {
  font-size: .82rem; font-weight: 500; letter-spacing: .01em;
  color: var(--on-navy-mute); text-align: center; max-width: 32ch;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  color: var(--ink); padding: 66px 0 74px;
}
.cta-grid { display: grid; gap: 36px; }
.cta-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.8rem, 6vw, 2.7rem); color: var(--navy);
  letter-spacing: -.015em; margin-bottom: 18px; max-width: 16ch;
}
.cta-sub { font-size: 1.1rem; color: var(--ink-soft); max-width: 44ch; margin-bottom: 22px; }
.cta-sub strong { color: var(--navy); font-weight: 600; }
.cta-secondary {
  margin-top: 26px; padding-top: 24px;
  border-top: 1px solid rgba(10,31,61,.14);
  font-size: 1.18rem; line-height: 1.6; color: var(--ink-soft);
}
.cta-secondary-lead { font-weight: 600; color: var(--navy); }
.cta-or { color: var(--ink-mute); margin: 0 3px; }
.cta-secondary a { color: var(--navy); font-weight: 600; border-bottom: 2px solid rgba(10,31,61,.35); padding-bottom: 1px; transition: border-color .2s; }
.cta-secondary a:hover { border-bottom-color: var(--navy); }

/* Form — navy card on the bright section */
.cta-form {
  background: var(--navy); color: var(--on-navy);
  border-radius: var(--radius-lg); padding: 28px 24px 26px;
  box-shadow: var(--shadow-float);
}
.form-lead { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--white); margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .8rem; font-weight: 600; color: var(--on-navy-mute); }
.field input {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid transparent; border-radius: 10px;
  background: #ffffff; transition: border-color .18s, box-shadow .18s;
  width: 100%;
}
.field input:focus {
  outline: none; border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255,255,255,.28);
}
.field input.invalid { border-color: #e07a6f; box-shadow: 0 0 0 3px rgba(224,122,111,.25); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--on-navy-mute); margin: 6px 0 18px; cursor: pointer; }
.consent input { margin-top: 3px; flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--white); }
.consent-req { color: var(--on-navy); font-weight: 600; }
.consent.invalid span { color: #f0a49b; }
.form-status { margin-top: 14px; font-size: .9rem; font-weight: 600; padding: 12px 14px; border-radius: 10px; }
.form-status.success { background: rgba(120,190,150,.15); color: #d6f0e0; border: 1px solid rgba(120,190,150,.4); }
.form-status.error { background: rgba(224,122,111,.14); color: #f3b4ac; border: 1px solid rgba(224,122,111,.4); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #050f20; color: var(--on-navy-mute); padding: 56px 0 40px; border-top: 1px solid var(--navy-line); }

/* Final CTA band */
.footer-cta {
  display: flex; flex-direction: column; gap: 22px;
  padding-bottom: 40px; margin-bottom: 42px;
  border-bottom: 1px solid var(--navy-line);
}
.footer-cta-title {
  font-family: var(--serif); font-weight: 500; color: var(--white);
  font-size: clamp(1.5rem, 4.4vw, 2.1rem); letter-spacing: -.01em; line-height: 1.22; max-width: 22ch;
}
.footer-cta-sub { margin-top: 12px; font-size: 1rem; color: var(--on-navy-mute); }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Brand + offices */
.footer-main { display: grid; gap: 40px; }
.footer-logo { height: 46px; width: auto; opacity: .96; display: block; }
.footer-blurb { margin-top: 16px; font-size: .9rem; line-height: 1.6; color: var(--on-navy-mute); max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16); color: var(--on-navy-mute);
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.footer-social svg { width: 17px; height: 17px; }
.footer-social a:hover { background: var(--white); color: var(--navy-deep); border-color: var(--white); transform: translateY(-2px); }

.footer-offices { display: grid; gap: 28px; }
.office h3 {
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 10px;
}
.office address { font-style: normal; font-size: .92rem; line-height: 1.6; color: var(--on-navy-mute); }
.office-dir, .office-tel { display: block; width: fit-content; font-size: .92rem; }
.office-dir { margin-top: 9px; color: var(--on-navy); border-bottom: 1px solid rgba(255,255,255,.28); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.office-dir:hover { color: var(--white); border-bottom-color: var(--white); }
.office-tel { margin-top: 8px; color: var(--on-navy-mute); transition: color .2s; }
.office-tel:hover { color: var(--white); }

/* Bottom bar */
.footer-bottom {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--navy-line);
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: .9rem; font-weight: 500; color: var(--on-navy-mute); transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-legal { font-size: .8rem; color: #5f7291; }

/* ==========================================================================
   Responsive — tablet & up
   ========================================================================== */
@media (min-width: 640px) {
  :root { --pad: 30px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-offices { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 900px) {
  .hero { padding: 70px 0 84px; }
  .hero-grid { grid-template-columns: 0.94fr 1.12fr; align-items: stretch; gap: 40px; }
  .hero-copy { align-self: center; max-width: 30rem; padding-right: 8px; }
  .hero-stage {
    position: absolute; margin: 0;
    right: -7%; bottom: -84px;      /* flush to the hero's bottom edge, bleed off the right */
    width: 116%;
  }
  /* Name tags beside each partner's head */
  .namechip-left  { left: 3%; right: auto; top: 20%; }
  .namechip-right { right: -8px; top: 8%; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .why { padding: 88px 0; }
  .why-grid { grid-template-columns: 0.95fr 1.05fr; align-items: start; gap: 64px; }
  .why-copy { position: sticky; top: 96px; }
  .services { padding: 88px 0; }
  .credentials-grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 60px; }
  .footer-cta { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
  .footer-cta-actions { flex-shrink: 0; }
  .footer-main { grid-template-columns: 1fr 1.6fr; gap: 56px; }
  .cta-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
  .cta { padding: 90px 0 100px; }
}

@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
