:root {
  --navy: #073b78;
  --blue: #1264ad;
  --orange: #f58220;
  --ink: #182536;
  --muted: #637184;
  --paper: #f5f8fc;
  --white: #fff;
  --line: #d9e4f0;
  --shadow: 0 14px 34px rgba(7, 59, 120, .10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }

.topline {
  height: 6px;
  background: linear-gradient(90deg, var(--navy) 0 72%, var(--orange) 72%);
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .97);
  border-bottom: 2px solid var(--orange);
  box-shadow: 0 5px 18px rgba(7, 59, 120, .06);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .3px;
  font-size: 1.28rem;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--navy);
  border: 3px solid var(--orange);
  border-radius: 12px;
  font-weight: 900;
  font-size: 1.2rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .66rem;
  letter-spacing: 1.8px;
  font-weight: 700;
  margin-top: -4px;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav > a,
.dropdown-toggle {
  color: #31445b;
  font-size: .94rem;
  font-weight: 700;
  padding: 9px 0;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
  cursor: pointer;
}

nav > a:hover,
nav > a.active,
.dropdown:hover > .dropdown-toggle,
.dropdown-toggle.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* Services Dropdown (2-column layout for 12 services) */
.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.caret {
  font-size: .72rem;
  transition: transform .2s ease;
}

.dropdown:hover .caret,
.dropdown.open .caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: -110px;
  width: 480px;
  background: var(--white);
  border: 2px solid var(--navy);
  border-top: 4px solid var(--orange);
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(7, 59, 120, .14);
  padding: 12px;
  z-index: 40;
}

/* Hover bridge so cursor doesn't lose hover moving to menu */
.dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 16px;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 10px;
}

.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 700;
  border-radius: 8px;
  border-bottom: none;
  transition: background .15s ease, color .15s ease, padding-left .15s ease;
}

.dropdown-menu a:hover {
  background: var(--paper);
  color: var(--orange);
  padding-left: 16px;
}

.dropdown-menu .divider {
  height: 1px;
  background: var(--line);
  margin: 8px 4px;
}

.dropdown-menu a.view-all {
  color: var(--navy);
  font-weight: 800;
  text-align: center;
  background: var(--paper);
}

.dropdown-menu a.view-all:hover {
  background: var(--navy);
  color: var(--white);
  padding-left: 12px;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--orange);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 800;
  transition: .2s ease;
  cursor: pointer;
}

.nav-cta:hover,
.btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
}

.menu-btn {
  display: none;
  border: 2px solid var(--navy);
  color: var(--navy);
  background: white;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Page Banner (Subpages) */
.page-banner {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(115deg, rgba(5, 42, 87, .97), rgba(9, 82, 145, .92));
  border-bottom: 7px solid var(--orange);
  padding: 64px 0;
}

.page-banner:before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -80px;
  top: -170px;
  border: 2px solid rgba(255, 255, 255, .12);
  border-radius: 40px;
  transform: rotate(35deg);
}

.page-banner h1 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  margin: 14px 0 12px;
}

.page-banner p {
  color: #e1edf8;
  font-size: 1.08rem;
  max-width: 650px;
  margin: 0;
}

.breadcrumb {
  margin-top: 18px;
  font-size: .85rem;
  color: #ffd2a8;
  font-weight: 700;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Home Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(115deg, rgba(5, 42, 87, .97), rgba(9, 82, 145, .92));
  border-bottom: 7px solid var(--orange);
}

.hero:before,
.hero:after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255, 255, 255, .12);
  transform: rotate(35deg);
}

.hero:before {
  width: 440px;
  height: 440px;
  right: -90px;
  top: -210px;
  border-radius: 44px;
}

.hero:after {
  width: 300px;
  height: 300px;
  right: 140px;
  bottom: -220px;
  border-radius: 50%;
}

.hero-inner {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 50px;
  padding-top: 70px;
  padding-bottom: 70px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  color: #ffd2a8;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .76rem;
  font-weight: 800;
  border-left: 4px solid var(--orange);
  padding-left: 12px;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.35rem);
  line-height: 1.08;
  margin: 18px 0;
  letter-spacing: -1.5px;
}

.hero p {
  color: #e1edf8;
  font-size: 1.12rem;
  max-width: 620px;
  margin: 0 0 28px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid rgba(255, 255, 255, .75);
  color: white;
  border-radius: 8px;
  font-weight: 800;
  margin-left: 10px;
  transition: .2s ease;
}

.btn-outline:hover {
  background: white;
  color: var(--navy);
}

.hero-panel {
  background: white;
  color: var(--ink);
  border: 3px solid var(--orange);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .2);
  transform: rotate(1.5deg);
}

.hero-panel h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.25rem;
}

.hero-panel p {
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 18px;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.metric strong {
  color: var(--orange);
  font-size: 1.2rem;
}

/* Sections & Grids */
section {
  padding: 82px 0;
}

.section-head {
  max-width: 700px;
  margin: 0 auto 42px;
  text-align: center;
}

.kicker {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .76rem;
  font-weight: 900;
}

h2 {
  color: var(--navy);
  font-size: clamp(2rem, 3.3vw, 2.8rem);
  line-height: 1.15;
  margin: 10px 0 14px;
}

.section-head p,
.muted {
  color: var(--muted);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.framed-box {
  min-height: 330px;
  padding: 18px;
  border: 3px solid var(--navy);
  border-radius: 20px;
  background: linear-gradient(135deg, #eaf3fc, #fff);
  position: relative;
}

.framed-inner {
  height: 100%;
  min-height: 290px;
  border: 3px solid var(--orange);
  border-radius: 13px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
}

.monogram {
  font-size: 5rem;
  line-height: 1;
  color: var(--navy);
  font-weight: 900;
}

.framed-inner span {
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 3px;
  font-size: .8rem;
}

.intro-copy h2 {
  margin-top: 8px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
}

.checklist li {
  margin: 11px 0;
  color: #35485d;
}

.checklist li:before {
  content: "✓";
  color: var(--orange);
  font-weight: 900;
  margin-right: 10px;
}

.services {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: white;
  border: 2px solid var(--navy);
  border-radius: 15px;
  padding: 27px;
  box-shadow: var(--shadow);
  transition: .2s ease;
  position: relative;
  scroll-margin-top: 110px;
  display: flex;
  flex-direction: column;
}

.card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  width: 54px;
  height: 5px;
  background: var(--orange);
  border-radius: 0 0 5px 5px;
}

.card:hover,
.card:target {
  transform: translateY(-6px);
  border-color: var(--orange);
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf5fd;
  color: var(--navy);
  font-size: 1.35rem;
  border: 1px solid #c8def3;
  margin-bottom: 18px;
}

.card h3 {
  color: var(--navy);
  margin: 0 0 8px;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: .95rem;
  flex: 1;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--orange);
  font-weight: 800;
  font-size: .88rem;
}

.card-link:hover {
  color: var(--navy);
}

/* CTA Band */
.about-band {
  background: var(--navy);
  color: white;
  border-top: 6px solid var(--orange);
  border-bottom: 6px solid var(--orange);
}

.about-band .band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.about-band h2 {
  color: white;
  margin: 0 0 10px;
}

.about-band p {
  color: #d8e7f5;
  margin: 0;
  max-width: 700px;
}

.about-band .btn {
  flex-shrink: 0;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 28px;
}

.contact-info {
  background: var(--navy);
  color: white;
  border: 3px solid var(--orange);
  border-radius: 18px;
  padding: 30px;
}

.contact-info h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.contact-info p {
  color: #d9e8f6;
}

.contact-item {
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.contact-item strong {
  display: block;
  color: #ffbd83;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

form {
  border: 2px solid var(--navy);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow);
  background: white;
}

form h3 {
  margin: 0 0 20px;
  color: var(--navy);
  font-size: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  color: #34475c;
  font-size: .86rem;
  font-weight: 800;
  margin: 0 0 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd8e5;
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  margin-bottom: 15px;
  outline: none;
  background: white;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, .12);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: .8rem;
  color: var(--muted);
  margin: 12px 0 0;
}

/* Footer */
footer {
  background: #052d5c;
  color: white;
  border-top: 6px solid var(--orange);
  padding: 35px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

footer p {
  margin: 4px 0 0;
  color: #c9d9e9;
  font-size: .9rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  color: #e6eef7;
  font-size: .9rem;
}

.footer-links a:hover {
  color: #ffb879;
}

/* Responsive */
@media (max-width: 850px) {
  nav { gap: 16px; }
  .hero-inner { grid-template-columns: 1fr .8fr; gap: 25px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .dropdown-menu { width: 420px; left: -140px; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 30px, 1160px); }
  .nav { min-height: 70px; }
  .menu-btn { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 14px 22px 20px;
    border-bottom: 2px solid var(--orange);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
  }
  nav.open { display: flex; }
  nav > a,
  .dropdown-toggle {
    padding: 10px 4px;
    width: 100%;
    justify-content: space-between;
  }
  .dropdown {
    display: block;
    width: 100%;
  }
  .dropdown::after { display: none; }
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--orange);
    border-radius: 0;
    margin: 4px 0 8px 12px;
    padding: 4px 8px;
    background: var(--paper);
  }
  .dropdown-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .nav-cta { display: none; }
  .hero-inner { min-height: auto; grid-template-columns: 1fr; padding-top: 65px; padding-bottom: 58px; }
  .hero-panel { max-width: 430px; transform: none; }
  .btn-outline { margin: 10px 0 0; }
  section { padding: 62px 0; }
  .intro-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .about-band .band-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-links { flex-wrap: wrap; }
}


/* Kingston Info Solutions Services brand assets */
.brand { flex-shrink: 0; }
.brand-logo { display: block; width: 285px; max-width: 100%; height: 66px; object-fit: contain; object-position: left center; }
.footer-brand { margin-bottom: 8px; }
.footer-logo { width: 300px; height: 82px; }
.footer-address { max-width: 430px; color: #c9d9e9; font-size: .9rem; margin: 6px 0 0; }
@media (max-width: 850px) { .brand-logo { width: 235px; height: 58px; } .footer-logo { width: 270px; height: 72px; } }
@media (max-width: 680px) { .brand-logo { width: 205px; height: 54px; } .nav { gap: 10px; } .nav-cta { display: none; } .footer-address { max-width: 100%; } }


/* Expanded footer layout */
footer { padding: 48px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .75fr 1fr 1.2fr;
  gap: 34px;
  align-items: start;
}
.footer-company p { max-width: 330px; line-height: 1.7; }
.footer-copy { margin-top: 22px !important; font-size: .78rem !important; }
.footer-column { display: flex; flex-direction: column; gap: 11px; }
.footer-column h3 { color: #fff; margin: 7px 0 8px; font-size: 1.05rem; }
.footer-column a { color: #d8e6f4; font-size: .9rem; line-height: 1.5; }
.footer-column a:hover { color: #ffb879; }
.footer-contact p { color: #d8e6f4; font-size: .9rem; line-height: 1.65; margin: 0 0 13px; }
.footer-contact strong { color: #ffbd83; }
.footer-logo { width: 310px; height: 86px; }
.dropdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dropdown-menu { width: 520px; }
.service-detail { max-width: 1060px; }
.service-intro { max-width: 850px; margin-bottom: 34px; }
.service-intro h2 { margin-top: 9px; }
.service-intro p { font-size: 1.04rem; line-height: 1.85; }
.service-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.detail-panel { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.detail-panel h2, .service-outcome h2 { font-size: 1.55rem; margin-top: 0; }
.detail-panel .checklist { margin-bottom: 0; }
.approach-list { padding-left: 22px; color: #35485d; line-height: 1.8; }
.approach-list li { padding: 5px 0 5px 5px; }
.service-outcome { margin-top: 26px; padding: 28px 30px; background: #edf5fd; border-radius: 14px; border-left: 5px solid var(--orange); }
.service-outcome p { margin: 0; color: #35485d; line-height: 1.8; }
.service-cta { margin-top: 28px; padding: 30px; border-radius: 14px; background: var(--navy); color: white; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.service-cta h2 { color: white; font-size: 1.65rem; margin: 0 0 8px; }
.service-cta p { color: #d8e7f5; margin: 0; }
.service-cta .btn { flex-shrink: 0; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dropdown-menu { width: 460px; }
}
@media (max-width: 680px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-logo { width: 260px; height: 74px; }
  .dropdown-menu { width: 100%; }
  .dropdown-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-cta { align-items: flex-start; flex-direction: column; }
}

.footer-column:nth-child(3) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.footer-column:nth-child(3) h3 { grid-column: 1 / -1; }
@media (max-width:680px) { .footer-column:nth-child(3) { grid-template-columns: 1fr 1fr; } }


/* Refined Kingstonsway footer - shared by every page */
.site-footer {
  background: #082f5d;
  color: #e6eef7;
  border-top: 0;
  padding: 30px 0 0;
  margin-top: auto;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.12fr .62fr 1fr;
  gap: 42px;
  align-items: start;
  padding-bottom: 28px;
}
.site-footer .footer-brand {
  display: inline-flex;
  margin: 0 0 8px;
}
.site-footer .footer-logo {
  width: 285px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}
.site-footer .footer-company p {
  max-width: 360px;
  margin: 2px 0 0;
  color: #d2dfed;
  font-size: .93rem;
  line-height: 1.65;
}
.site-footer .footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.site-footer .footer-column h3 {
  margin: 0 0 7px;
  color: #ffbd83;
  font-size: .88rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 1.25px;
  font-weight: 800;
}
.site-footer .footer-column a {
  color: #e2ebf5;
  font-size: .91rem;
  line-height: 1.5;
}
.site-footer .footer-column a:hover,
.site-footer .footer-bottom a:hover {
  color: #ffbd83;
}
.site-footer .footer-contact {
  gap: 12px;
}
.site-footer .footer-contact p {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 9px;
  margin: 0;
  color: #e2ebf5;
  font-size: .91rem;
  line-height: 1.6;
}
.site-footer .footer-contact strong {
  color: #f4f7fb;
}
.site-footer .footer-symbol {
  color: #ff9b52;
  font-size: 1rem;
  line-height: 1.55;
  text-align: center;
}
.site-footer .phone-symbol { color: #e34b91; }
.site-footer .mail-symbol { color: #ff9b52; }
.site-footer .footer-contact a { display: inline; }
.site-footer .footer-bottom {
  min-height: 54px;
  border-top: 1px solid rgba(218, 232, 247, .16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #c7d6e6;
  font-size: .82rem;
}
.site-footer .footer-bottom a { color: #c7d6e6; }
@media (max-width: 850px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .site-footer .footer-company { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .site-footer { padding-top: 28px; }
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-bottom: 24px;
  }
  .site-footer .footer-company { grid-column: auto; }
  .site-footer .footer-logo { width: 270px; max-width: 100%; }
  .site-footer .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* Keep the site stylesheet predictable on all sub-pages */
html, body { min-height: 100%; }
body { background-color: #fff; }

.site-footer .footer-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: #fff;
}
.site-footer .footer-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  border: 3px solid #f58220;
  border-radius: 12px;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1;
  font-weight: 900;
}
.site-footer .footer-wordmark-text strong {
  display: block;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: .35px;
}
.site-footer .footer-wordmark-text small {
  display: block;
  margin-top: 2px;
  color: #d2dfed;
  font-size: .65rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 1.7px;
}
