:root{
  --bg:#f7f9fc;
  --panel:#ffffff;
  --panel-soft:#f1f5f9;
  --text:#142033;
  --muted:#5f6f84;
  --blue:#0b69c7;
  --blue-dark:#0a4f95;
  --orange:#f36b21;
  --border:#d8e3ef;
  --shadow:0 14px 36px rgba(17,38,68,.10);
  --radius:18px;
  --max:1120px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background: linear-gradient(180deg,#ffffff 0%,#f7f9fc 100%);
  color:var(--text);
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  line-height:1.6;
}
a{color:inherit;text-decoration:none}
.container{max-width:var(--max);margin:0 auto;padding:0 18px}

.kicker{
  color:var(--blue);
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:.78rem;
  font-weight:800;
}
.muted{color:var(--muted)}
.small{font-size:.95rem}

header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:12px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:260px;
}
.logo{
  width:56px;
  height:56px;
  border-radius:14px;
  background:#fff url('Logo.png') center/contain no-repeat;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  flex:0 0 auto;
}
.name{font-weight:800;letter-spacing:.02em}
.tag{font-size:.82rem;color:var(--muted);margin-top:2px}

.navlinks{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.navlinks a{
  color:var(--muted);
  font-size:.95rem;
  padding:8px 10px;
  border-radius:10px;
}
.navlinks a:hover{color:var(--blue-dark)}
.navlinks a.active{
  color:var(--blue-dark);
  background:#eef5fc;
  border:1px solid #cfe0f3;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 15px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font-weight:700;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow)}
.btn.primary{
  background:linear-gradient(135deg,var(--blue),var(--blue-dark));
  color:#fff;
  border-color:transparent;
}
.btn.secondary{
  background:#fff7f2;
  color:var(--orange);
  border-color:#ffd7c2;
}
.btn.small{padding:10px 12px;font-size:.92rem}

.pagehead{padding:48px 0 14px}
.pagehead h1{margin:10px 0 8px;font-size:clamp(2rem,3vw,3rem);line-height:1.12}
.pagehead p{margin:0 0 12px}

.section{padding:18px 0 28px}
.grid3{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}
.card{
  border:1px solid var(--border);
  border-radius:16px;
  padding:24px;
  background:var(--panel);
  box-shadow:var(--shadow);
}
.sep{
  border:0;
  height:1px;
  background:var(--border);
  margin:24px 0;
}
.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  align-items:start;
}
.callout{
  border:1px solid var(--border);
  background:linear-gradient(180deg,#ffffff 0%, #f6faff 100%);
  border-radius:18px;
  padding:22px;
  box-shadow:var(--shadow);
}
.pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.pill{
  border:1px solid #cfe0f3;
  background:#eef5fc;
  color:var(--blue-dark);
  border-radius:999px;
  padding:6px 10px;
  font-size:.9rem;
  font-weight:600;
}
.form{
  display:grid;
  gap:10px;
  margin-top:10px;
}
label{font-size:.92rem;color:var(--muted)}
input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  outline:none;
}
textarea{min-height:120px;resize:vertical}
input:focus, select:focus, textarea:focus{
  border-color:#8ab7ea;
  box-shadow:0 0 0 3px rgba(11,105,199,.12);
}

.contact-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:12px;
}

.contact-actions .btn{
  margin:0 !important;
}

footer{
  margin-top:34px;
  border-top:1px solid var(--border);
  background:#fff;
}
.footgrid{
  display:grid;
  grid-template-columns:1.2fr .8fr .8fr .8fr;
  gap:16px;
  padding:24px 0;
}
.footlinks a{color:var(--muted)}
.footlinks a:hover{color:var(--blue-dark)}
.badge{
  border:1px solid var(--border);
  background:#fff;
  border-radius:999px;
  padding:10px 12px;
  display:inline-block;
}
.social-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}
.hero-logo{
  max-width:220px;
  width:100%;
  display:block;
  margin:0 0 16px;
}
@media (max-width: 980px){
  .grid3{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .footgrid{grid-template-columns:1fr}
  .nav{align-items:flex-start}
}


@media (max-width: 900px){
  .footgrid{grid-template-columns:1fr 1fr;}
}
@media (max-width: 640px){
  .footgrid{grid-template-columns:1fr;}
}



/* ===== FINAL MOBILE HEADER / NAV FIX ===== */
html, body {
  overflow-x: hidden;
}

.container{
  width:100%;
  max-width:1120px;
  margin:0 auto;
  padding:0 18px;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:nowrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:1 1 auto;
}

.brand > div:last-child{
  min-width:0;
}

.name{
  font-weight:800;
  letter-spacing:.02em;
  line-height:1.15;
}

.tag{
  font-size:.82rem;
  color:var(--muted);
  margin-top:2px;
  line-height:1.35;
}

.navlinks{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.navlinks a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.hero-logo{
  max-width:220px;
  width:100%;
  height:auto;
  display:block;
  margin:0 0 16px;
}

.calendly-inline-widget{
  width:100%;
  min-width:100% !important;
  border:0;
}

@media (max-width: 980px){
  .grid3{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .footgrid{grid-template-columns:1fr 1fr}
  .nav{
    flex-direction:column;
    align-items:flex-start;
  }
  .navlinks{
    width:100%;
    justify-content:flex-start;
  }
}

@media (max-width: 640px){
  .container{
    padding:0 14px;
  }

  header{
    position:relative;
  }

  .nav{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
    padding:12px 0;
  }

  .brand{
    width:100%;
    align-items:flex-start;
  }

  .logo{
    width:52px;
    height:52px;
    flex:0 0 52px;
  }

  .name{
    font-size:1rem;
    line-height:1.15;
    word-break:break-word;
  }

  .tag{
    font-size:.78rem;
    line-height:1.35;
  }

  .navlinks{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    justify-content:stretch;
  }

  .navlinks a{
    width:100%;
    min-height:44px;
    padding:10px 12px;
    border-radius:12px;
    text-align:center;
  }

  .navlinks .btn,
  .btn.primary.small{
    grid-column:1 / -1;
    width:100%;
  }

  .pagehead{
    padding:28px 0 14px;
  }

  .hero-logo{
    max-width:170px;
    margin:0 0 16px;
  }

  .pagehead h1{
    font-size:clamp(2rem, 8vw, 2.6rem);
    line-height:1.08;
  }

  .card,
  .callout{
    padding:18px;
  }

  .contact-actions{
    flex-direction:column;
  }

  .contact-actions .btn{
    width:100%;
  }

  .pills{
    gap:8px;
  }

  .pill{
    font-size:.84rem;
  }

  .footgrid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .badge{
    width:100%;
    border-radius:16px;
  }
}

@media (max-width: 420px){
  .container{
    padding:0 12px;
  }

  .logo{
    width:48px;
    height:48px;
    flex:0 0 48px;
  }

  .name{
    font-size:.96rem;
  }

  .tag{
    font-size:.75rem;
  }

  .navlinks{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .navlinks a{
    font-size:.92rem;
    min-height:42px;
    padding:9px 10px;
  }

  .hero-logo{
    max-width:150px;
  }

  .pagehead h1{
    font-size:1.9rem;
  }
}

footer{
  margin-top:40px;
  border-top:1px solid #d8e3ef;
  background:#ffffff;
}

.footgrid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:28px;
  padding:32px 0 20px;
  align-items:start;
}

.footlinks{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.footlinks a{
  color:#5f6f84;
  text-decoration:none;
  font-size:15px;
}

.footlinks a:hover{
  color:#0a4f95;
}

.badge{
  display:inline-block;
  padding:14px 16px;
  border:1px solid #d8e3ef;
  border-radius:16px;
  background:#f8fbff;
  color:#142033;
  font-weight:600;
  max-width:100%;
}


/* ===== MOBILE FOOTER LAYOUT: TOP BOX ABOVE PAGES/SOCIAL/CONTACT ONLY ===== */
@media (max-width: 640px){
  .footgrid{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    gap:18px !important;
    align-items:start !important;
  }

  .footgrid > div:first-child{
    grid-column:1 / -1 !important;
    width:100% !important;
    max-width:100% !important;
  }

  .footgrid > div:not(:first-child){
    min-width:0 !important;
  }

  .badge{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    white-space:normal !important;
  }

  .footlinks{
    display:flex !important;
    flex-direction:column !important;
    gap:10px !important;
  }

  .footlinks a,
  .footlinks span,
  .footlinks div{
    word-break:break-word !important;
  }
}

@media (max-width: 420px){
  .footgrid{
    grid-template-columns:1fr 1fr 1fr !important;
    gap:14px !important;
  }

  .badge{
    padding:12px 14px !important;
  }
}


/* ===== HOMEPAGE HERO BUTTON FIX ===== */
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}
.hero-actions .hero-btn{
  margin-left:0 !important;
}
@media (max-width: 640px){
  .hero-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .hero-actions .hero-btn{
    width:100%;
    justify-content:center;
  }
}
