/* ==========================================================================
   bkptech.com site styles
   Edit freely — this is the only stylesheet.
   Colors, fonts and spacing are defined as variables below.
   ========================================================================== */

:root {
  --bg: #f5fafd;               /* page background (pale blue) */
  --text: #333940;             /* body text */
  --heading: #3c424f;          /* headings */
  --accent: #03a9f4;           /* links, highlights (light blue) */
  --accent-dark: #0288d1;
  --orange: #ff9800;           /* footer accent */
  --card-bg: #ffffff;
  --card-border: #e2ecf3;
  --footer-bg: #222222;
  --font-body: "Open Sans", Helvetica, Arial, sans-serif;
  --font-heading: "Mulish", Helvetica, Arial, sans-serif;
  --container: 1232px;
}

/* ---- Self-hosted fonts (variable weight) --------------------------------- */
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/mulish-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-var.woff2") format("woff2");
}

/* ---- Reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  /* Sticky footer: main stretches so the footer reaches the bottom
     of the window even on short pages. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h2 { font-size: 2.2rem; font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
ul { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container.narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: -9999px;
  background: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---- Header / navigation -------------------------------------------------- */
.site-header {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  flex-wrap: wrap;
}
.logo-link img { width: 240px; height: 80px; object-fit: contain; }

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-menu > li { position: relative; margin: 0; }
.nav-menu > li > a {
  display: block;
  padding: 8px 2px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--heading);
  border-bottom: 3px solid transparent;
}
.nav-menu > li.active > a { border-bottom-color: var(--accent); }
.nav-menu > li > a:hover { color: var(--accent); }

/* Dropdowns (desktop: on hover/focus) */
.dropdown {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 6px 6px;
  display: none;
  z-index: 60;
}
.dropdown li { margin: 0; }
.dropdown a {
  display: block;
  padding: 10px 18px;
  color: #6b7c93;
  font-size: 14px;
  text-decoration: none;
}
.dropdown a:hover { background: #f4f8fb; color: var(--heading); }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }

/* Mobile menu toggle (CSS only, no JavaScript) */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: 10px; }
.nav-toggle-label span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .nav-toggle-label { display: block; }
  .site-nav { display: none; width: 100%; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav-menu { flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .nav-menu > li > a { padding: 14px 8px; border-bottom: 1px solid var(--card-border); }
  .nav-menu > li.active > a { color: var(--accent); }
  .dropdown {
    display: block;               /* sub-menus always visible on mobile */
    position: static;
    box-shadow: none;
    background: #fafcfe;
    min-width: 0;
  }
  .dropdown a { padding-left: 28px; }
}

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  background-image: url("../images/hero-960.webp");
  background-size: cover;
  background-position: center top;
  color: #fff;
  text-align: center;
  position: relative;
}
@media (min-width: 961px) {
  .hero {
    background-image: url("../images/hero-1920.webp");
  }
}
.hero h1 {
  color: #fff;
  font-weight: 300;
  letter-spacing: 0.9px;
  margin: 0;
}
.hero-subtitle { font-size: 1.25rem; font-weight: 300; margin: 16px 0 0; }
.hero-subtitle:empty { display: none; }

/* Wave separator at the bottom of the home hero */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 154px;
  pointer-events: none;
}
.hero-wave svg { width: 100%; height: 100%; display: block; }

/* Home page: tall hero with wave. Inner pages: compact banner, dark title. */
.page-home .hero { padding: 130px 0 300px; }
.page-home .hero h1 { font-size: 3.5rem; max-width: 950px; margin: 0 auto; }
.page-inner .hero { padding: 44px 0 28px; text-align: left; background-position: center; }
.page-inner .hero h1 { font-size: 3rem; font-weight: 400; color: #343a40; }
.page-inner .hero-wave { display: none; }

@media (max-width: 767px) {
  .page-home .hero { padding: 70px 0 180px; }
  .page-home .hero h1 { font-size: 2.1rem; }
  .hero-wave { height: 90px; }
  .page-inner .hero { padding: 30px 0 18px; }
  .page-inner .hero h1 { font-size: 1.9rem; }
}

/* ---- Content sections ------------------------------------------------------ */
.section { padding: 64px 0; }
.section.tight { padding: 36px 0; }
.section-title { text-align: center; margin-bottom: 8px; }
.section-lead {
  text-align: center;
  font-size: 1.15rem;
  max-width: 760px;
  margin: 0 auto 40px;
}

/* Two-column text + image rows */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.text-narrow { grid-template-columns: 5fr 7fr; }
.split img { box-shadow: 0 14px 40px rgba(60, 66, 79, 0.18); }
.split img.plain { box-shadow: none; }
@media (max-width: 767px) {
  .split, .split.text-narrow { grid-template-columns: 1fr; gap: 28px; }
}

/* Small floated media inside running text */
.media-left, .media-right { margin: 8px 0 16px; }
@media (min-width: 600px) {
  .media-left  { float: left;  width: 200px; margin-right: 28px; }
  .media-right { float: right; width: 200px; margin-left: 28px; }
}
.clearfix::after { content: ""; display: table; clear: both; }

/* Text-plus-image rows (indented text beside a narrow image column):
   the text column is indented 8% on both sides, the image sits in a narrow
   column whose width is set per block with --img-col. */
.media-row { display: grid; align-items: center; margin: 8px 0 16px; }
.media-row.image-right { grid-template-columns: auto var(--img-col, 15%); }
.media-row.image-left  { grid-template-columns: var(--img-col, 15%) auto; }
.media-row .media-content { padding: 0 8%; }
.media-row img { max-width: 100%; height: auto; }
@media (max-width: 640px) {
  .media-row.image-right, .media-row.image-left { grid-template-columns: 1fr; }
  .media-row .media-content { padding: 0; }
  .media-row img { margin: 12px auto 0; }
}

/* Cards (Areas of Expertise, service links) */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 767px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(60, 66, 79, 0.12);
}
.card h3 {
  color: var(--orange);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 0.5em;
}
.card p { margin: 0; }
.card-icon {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon svg { width: 32px; height: 32px; }
.card a { text-decoration: none; }
.card a:hover h3 { color: #e08600; }

/* Text alignment helpers (match the original layout) */
.text-right { text-align: right; }
.text-center { text-align: center; }
@media (max-width: 767px) { .split .text-right { text-align: center; } }

/* Image with the offset orange box behind it (home "Our Company") */
.offset-image { position: relative; }
.offset-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 83%;
  height: 113%;
  transform: translate(31%, -8%);
  background: var(--orange);
  box-shadow: 0 10px 30px rgba(60, 66, 79, 0.25);
}
.offset-image img { position: relative; }
@media (max-width: 600px) { .offset-image::before { display: none; } }

/* Overlapping image pair (home "A Singular Focus") */
.image-overlap { display: flex; align-items: center; justify-content: center; }
.image-overlap img {
  position: relative;
  box-shadow: 0 14px 40px rgba(60, 66, 79, 0.25);
}
.image-overlap .img-front { margin-left: -156px; }
@media (max-width: 900px) {
  .image-overlap img { max-width: 46vw; }
  .image-overlap .img-front { margin-left: -14vw; }
}

/* Titled list panels (services pages) */
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}
@media (max-width: 767px) { .panel-grid { grid-template-columns: 1fr; } }
.panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 26px 30px;
}
.panel h3 {
  color: var(--orange);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.panel img { margin: 18px auto 4px; border-radius: 6px; }

/* Bold lead-in line above a list or panel grid */
.list-lead { font-weight: 700; font-size: 1.05rem; color: var(--heading); margin: 28px 0 4px; }

/* Checkmark lists: services read as capabilities, not generic notes */
.check-list { list-style: none; padding-left: 0; margin: 0; }
.check-list > li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.check-list > li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-weight: 700;
}
.check-list ul { list-style: none; padding-left: 4px; margin: 6px 0 0; }
.check-list ul li { position: relative; padding-left: 20px; }
.check-list ul li::before { content: "\2013"; position: absolute; left: 2px; color: var(--orange); }

/* Product/keyword tags */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag {
  background: #e8f6fe;
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.button:hover { background: var(--accent-dark); color: #fff; }

/* Call-to-action strip used at the bottom of most pages */
.cta {
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 36px 24px;
}
.cta p { max-width: 640px; margin: 0 auto 20px; }

/* Contact page */
.contact-panel {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 48px 24px;
  flex-wrap: wrap;
  text-align: center;
}
.contact-panel .contact-icon {
  width: 72px;
  height: 72px;
  color: var(--accent);
}
.contact-panel a {
  font-size: 1.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
}

/* ---- Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  color: #fff;
  margin-top: 48px;
  width: 100%;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
}
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-cell { padding: 16px 12px; }
@media (min-width: 768px) {
  .footer-cell + .footer-cell:not(.footer-accent) { border-left: 1px solid rgba(255, 255, 255, 0.1); }
}
.footer-icon { width: 28px; height: 28px; margin: 0 auto 6px; display: block; }
.footer-cell p { margin: 0; line-height: 1.5; }
.footer-cell .email-img { margin: 4px auto 0; }
.footer-accent { background: var(--orange); }
.footer-accent a:hover { color: #222; }
.social-icons { display: flex; gap: 16px; justify-content: center; margin-bottom: 6px; }
.social-icons svg { width: 22px; height: 22px; }
.copyright { font-size: 0.85rem; margin: 0; }
