/*
Theme Name: BitNetica
Theme URI: https://bitnetica.com
Author: BitNetica
Description: Custom WordPress theme for BitNetica — Technology Solutions to Grow Your Business. Navy + orange brand system, local SEO structure with managed services, service, city, and case-study templates, LocalBusiness/Service/FAQ schema, Customizer settings, template parts, Fluent Forms + reCAPTCHA v3, FluentSMTP, 3CX chat, HubSpot, and Trustindex reviews.
Version: 3.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: bitnetica
*/

/* ============ Tokens ============ */
:root {
  --navy: #1b3a54;
  --navy-deep: #122a3f;
  --navy-ink: #0d2233;
  --orange: #e85c2a;
  --orange-dark: #c6491e;
  --orange-soft: #fdece4;
  --mist: #f3f6f9;
  --line: #dde5ec;
  --ink: #22303c;
  --slate: #5c6c7a;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(18, 42, 63, 0.10);
  --font-display: "Archivo", "Segoe UI", Arial, sans-serif;
  --font-body: "Geist", "Segoe UI", Arial, sans-serif;
  --wrap: 1160px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1.1em; }

/* Brochure signature: orange square end-mark */
.sq::after {
  content: "";
  display: inline-block;
  width: 0.42em; height: 0.42em;
  background: var(--orange);
  margin-left: 0.28em;
  vertical-align: baseline;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 48px 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #e8eef4; }
.section--navy h2, .section--navy h3 { color: #fff; }
.kicker {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-dark);
  display: block;
  margin-bottom: 10px;
}
.section--navy .kicker { color: #f5936b; }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 46em; }
.section--navy .lead { color: #c6d3de; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(232, 92, 42, 0.35); }
.btn--orange:hover { background: var(--orange-dark); color: #fff; }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

/* ============ Header ============ */
.topbar {
  background: var(--navy-deep);
  color: #cfdbe6;
  font-size: 0.85rem;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; }
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand__text { line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.brand__name .bit { color: var(--orange); }
.brand__name .netica { color: var(--navy); }
.brand__tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  padding: 10px 13px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--navy);
  border-radius: 7px;
}
.main-nav a:hover { background: var(--mist); text-decoration: none; }
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a { color: var(--orange-dark); }
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a { padding: 9px 12px; font-weight: 500; }
.nav-cta { margin-left: 10px; }
.nav-cta a {
  background: var(--orange);
  color: #fff !important;
  padding: 11px 18px;
  border-radius: 8px;
}
.nav-cta a:hover { background: var(--orange-dark); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 14px 20px; gap: 0; }
  .main-nav .sub-menu { position: static; display: flex; box-shadow: none; border: none; padding-left: 16px; }
  .nav-cta { margin: 8px 0 0; }
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 60%, #24506f 100%);
  color: #e9eff5;
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}
/* Full-bleed image hero: the artwork covers the whole section.
   Design the image with empty space on the left for the text. */
.hero--img {
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
/* Parallax scroll (desktop); disabled on touch devices where fixed
   backgrounds are janky or unsupported. */
.hero--parallax { background-attachment: fixed; }
@media (hover: none), (max-width: 860px) {
  .hero--parallax { background-attachment: scroll; }
}
/* Legibility scrim over the text side when an image is set */
.hero--img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,34,51,0.88) 0%, rgba(13,34,51,0.55) 42%, rgba(13,34,51,0) 68%);
  pointer-events: none;
}
.hero .wrap { position: relative; width: 100%; padding-top: 84px; padding-bottom: 92px; }
.hero__inner { max-width: 620px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #f5936b; }
.hero .lead { color: #c6d3de; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; padding: 0; list-style: none; font-size: 0.95rem; color: #d7e1ea; }
.hero__points li::before { content: "■"; color: var(--orange); margin-right: 8px; font-size: 0.7em; vertical-align: 1px; }
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .hero--img { background-position: center; }
  .hero--img::before { background: rgba(13,34,51,0.72); }
}

/* Interior page hero */
.page-hero { background: var(--navy); color: #dbe5ee; padding: 52px 0 46px; }
.page-hero h1 { color: #fff; margin-bottom: 0.3em; }
.page-hero .lead { color: #c6d3de; margin-bottom: 0; }

/* Breadcrumbs */
.crumbs { font-size: 0.85rem; margin-bottom: 18px; color: #9db2c2; }
.crumbs a { color: #cfdbe6; }
.crumbs .sep { margin: 0 7px; color: var(--orange); }

/* ============ Cards & grids ============ */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--orange); }
.card h3 a { color: var(--navy); }
.card h3 a:hover { color: var(--orange-dark); text-decoration: none; }
.card p { color: var(--slate); font-size: 0.97rem; margin-bottom: 14px; }
.card .more { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; }
.card .more::after { content: " →"; }
.icon-badge {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.icon-badge svg { width: 30px; height: 30px; }

/* Steps 1-2-3 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; padding: 10px; }
.step__num {
  width: 74px; height: 74px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(232, 92, 42, 0.4);
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--slate); font-size: 0.95rem; }
.section--navy .step p { color: #c6d3de; }

/* Trust bar */
.trustbar { background: var(--navy-deep); color: #fff; padding: 22px 0; }
.trustbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; }
.trust { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.trust svg { width: 22px; height: 22px; color: var(--orange); flex: none; }

/* Partner strip */
.partners { display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: center; align-items: center; }
.partners span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #8ba0b1;
  letter-spacing: 0.02em;
}

/* Area / town lists */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin: 18px 0 0; }
.pill-list a, .pill-list .pill {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--navy);
}
.pill-list a:hover { border-color: var(--orange); color: var(--orange-dark); text-decoration: none; }
.pill-list .pill--plain { background: var(--mist); color: var(--slate); font-weight: 500; }
.section--mist .pill-list .pill--plain { background: #e7edf3; }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 18px 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 12px; height: 12px;
  background: var(--orange);
}

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 34px; } }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--orange-dark), var(--orange));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: 0.92; }
.cta-band .btn { background: #fff; color: var(--orange-dark); }
.cta-band .btn:hover { background: var(--navy); color: #fff; }

/* ============ Footer ============ */
.site-footer { background: var(--navy-ink); color: #b9c8d5; font-size: 0.93rem; }
.site-footer a { color: #dce6ee; }
.site-footer a:hover { color: var(--orange); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 60px 0 44px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand svg { width: 44px; height: 44px; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: #8ba0b1;
}

/* ============ Blog / content ============ */
.content-area { padding: 60px 0; }
.entry-content { max-width: 760px; }
.entry-content img { border-radius: var(--radius); }
.post-card { margin-bottom: 34px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.post-card h2 { font-size: 1.5rem; }
.post-meta { font-size: 0.85rem; color: var(--slate); margin-bottom: 8px; }
.pagination { display: flex; gap: 8px; margin-top: 30px; }
.pagination .page-numbers {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 7px;
  font-family: var(--font-display); font-weight: 600; color: var(--navy);
}
.pagination .current { background: var(--orange); border-color: var(--orange); color: #fff; }

/* Forms (incl. Contact Form 7) */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"],
.wpcf7 textarea, .contact-fallback input, .contact-fallback textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font: inherit;
  margin: 4px 0 16px;
  background: #fff;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--orange); outline: none; }
.wpcf7 input[type="submit"] {
  background: var(--orange); color: #fff; border: none; border-radius: 8px;
  padding: 14px 30px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--orange-dark); }

.contact-info-card { background: var(--mist); border-radius: var(--radius-lg); padding: 30px; }
.contact-info-card p { margin-bottom: 10px; }
.contact-info-card strong { color: var(--navy); }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius-lg); margin-top: 22px; }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px); position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
}

/* ============ v2.0 additions (reuse existing tokens) ============ */

/* Book-a-meeting nav button */
.nav-book { display:inline-block; margin-left:10px; background:var(--orange); color:#fff !important; padding:11px 18px; border-radius:8px; font-family:var(--font-display); font-weight:700; font-size:0.95rem; }
.nav-book:hover { background:var(--orange-dark); text-decoration:none; }
@media (max-width:940px){ .nav-book{ display:block; margin:10px 20px 16px; text-align:center; } }

/* Card flag badge */
.card { position: relative; }
.card__flag { position:absolute; top:14px; right:14px; background:var(--orange-soft); color:var(--orange-dark); font-family:var(--font-display); font-weight:700; font-size:0.68rem; letter-spacing:0.06em; text-transform:uppercase; padding:4px 10px; border-radius:999px; }
.badge-home { display:inline-block; font-size:0.6rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; color:var(--orange-dark); background:var(--orange-soft); padding:2px 7px; border-radius:999px; vertical-align:middle; }

/* Section head (title + action on one row) */
.section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:32px; flex-wrap:wrap; }
.section-head h2 { margin:0; }

/* Reviews */
.review-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:26px 24px; display:flex; flex-direction:column; gap:12px; }
.review-card__stars { display:flex; gap:2px; color:var(--orange); }
.review-card__stars .star { width:20px; height:20px; fill:var(--orange); stroke:var(--orange); }
.review-card__text { color:var(--ink); font-size:1rem; margin:0; }
.review-card__by { margin:0; color:var(--slate); font-size:0.9rem; }
.review-card__by strong { color:var(--navy); }
.reviews-embed { min-height:60px; }

/* Blog carousel */
.carousel { position:relative; }
.carousel__track { display:flex; gap:24px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; padding:6px 2px 14px; -webkit-overflow-scrolling:touch; scrollbar-width:thin; }
.carousel__track::-webkit-scrollbar { height:8px; }
.carousel__track::-webkit-scrollbar-thumb { background:var(--line); border-radius:8px; }
.carousel__item { scroll-snap-align:start; flex:0 0 340px; max-width:340px; }
@media (max-width:560px){ .carousel__item{ flex-basis:82%; max-width:82%; } }
.post-card-mini { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); overflow:hidden; display:flex; flex-direction:column; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.post-card-mini:hover { transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--orange); }
.post-card-mini__thumb { display:block; aspect-ratio:16/9; background:var(--mist); overflow:hidden; }
.post-card-mini__thumb img { width:100%; height:100%; object-fit:cover; }
.post-card-mini__ph { display:flex; align-items:center; justify-content:center; height:100%; color:var(--orange); }
.post-card-mini__ph svg { width:56px; height:56px; }
.post-card-mini__body { padding:20px 20px 22px; display:flex; flex-direction:column; gap:8px; }
.post-card-mini__body h3 { font-size:1.1rem; margin:0; }
.post-card-mini__body h3 a { color:var(--navy); }
.post-card-mini__body h3 a:hover { color:var(--orange-dark); text-decoration:none; }
.post-card-mini__body p { color:var(--slate); font-size:0.92rem; margin:0; }
.carousel__nav { position:absolute; top:38%; transform:translateY(-50%); z-index:5; width:44px; height:44px; border-radius:50%; border:1px solid var(--line); background:#fff; color:var(--navy); cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow); }
.carousel__nav:hover { background:var(--navy); color:#fff; border-color:var(--navy); }
.carousel__nav svg { width:22px; height:22px; }
.carousel__nav--prev { left:-8px; transform:translateY(-50%) rotate(180deg); }
.carousel__nav--next { right:-8px; }
@media (max-width:760px){ .carousel__nav{ display:none; } }

/* Contact grid */
.contact-grid { display:grid; grid-template-columns:1.35fr 1fr; gap:44px; align-items:start; }
.contact-grid--single { grid-template-columns:1fr; max-width:760px; margin:0 auto; }
@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; gap:30px; } }
.contact-fallback { border-color:var(--orange); }

/* Social bar */
.social-bar { display:flex; gap:10px; margin-top:18px; }
.social-bar a { width:40px; height:40px; border-radius:8px; display:flex; align-items:center; justify-content:center; background:var(--mist); color:var(--navy); border:1px solid var(--line); }
.social-bar a:hover { background:var(--orange); color:#fff; border-color:var(--orange); text-decoration:none; }
.social-bar svg { width:20px; height:20px; }
.social-bar--dark a { background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.18); color:#fff; }
.social-bar--dark a:hover { background:var(--orange); border-color:var(--orange); }
.site-footer .social-bar a { background:rgba(255,255,255,0.06); border-color:rgba(255,255,255,0.14); color:#dce6ee; }
.site-footer .social-bar a:hover { background:var(--orange); color:#fff; }

/* FAQ */
.faq { max-width:820px; margin:0 auto; }
.faq__item { border:1px solid var(--line); border-radius:12px; background:#fff; margin-bottom:12px; padding:0 22px; }
.faq__item summary { cursor:pointer; list-style:none; padding:18px 0; font-family:var(--font-display); font-weight:700; color:var(--navy); font-size:1.05rem; display:flex; justify-content:space-between; align-items:center; gap:14px; }
.faq__item summary::-webkit-details-marker { display:none; }
.faq__item summary::after { content:"+"; color:var(--orange); font-size:1.5rem; font-weight:700; line-height:1; flex:none; }
.faq__item[open] summary::after { content:"–"; }
.faq__a { padding:0 0 18px; color:var(--slate); }
.faq__a p { margin:0; }

/* Case study */
.case-study-content .wp-block-quote { border-left:4px solid var(--orange); background:var(--mist); padding:20px 24px; border-radius:0 12px 12px 0; margin:26px 0; font-size:1.15rem; }
.case-study-content .wp-block-quote cite { display:block; margin-top:8px; font-style:normal; font-weight:700; color:var(--navy); font-size:0.9rem; }
.case-postcard-slot { border:2px dashed var(--line); border-radius:var(--radius-lg); padding:16px; text-align:center; background:var(--mist); }
.case-postcard-slot img { border-radius:8px; margin:0 auto; }
.case-postcard-slot figcaption { font-size:0.85rem; color:var(--slate); margin-top:10px; }

/* Blog list (index/archive) */
.post-list { display:flex; flex-direction:column; gap:0; }
.post-card { display:grid; grid-template-columns:260px 1fr; gap:26px; align-items:center; }
.post-card__thumb { display:block; border-radius:var(--radius-lg); overflow:hidden; aspect-ratio:16/10; background:var(--mist); }
.post-card__thumb img { width:100%; height:100%; object-fit:cover; }
@media (max-width:640px){ .post-card{ grid-template-columns:1fr; } }
.entry-hero-img { border-radius:var(--radius-lg); margin-bottom:24px; }
.post-share { margin-top:30px; }

/* Home intro + entry content lists reuse .checks styling nicely */
.home-intro { max-width:820px; }

/* Map embed (contact) */
.map-embed { border:0; width:100%; height:360px; border-radius:var(--radius-lg); }

/* Partners strip (About) reuse */
.partners { display:flex; flex-wrap:wrap; gap:14px 34px; justify-content:center; align-items:center; margin-top:16px; }
.partners span { font-family:var(--font-display); font-weight:700; font-size:1.05rem; color:#8ba0b1; letter-spacing:0.02em; }

/* ============ v2.2: header/nav redesign, logo constraints, social ============ */

/* Uploaded logo: always constrained, never a billboard */
.brand--img { gap: 0; }
.brand__img, .brand img { height: 54px; width: auto; max-width: 320px; object-fit: contain; }
@media (max-width: 560px) { .brand__img, .brand img { height: 42px; max-width: 220px; } }

/* Burger button */
.nav-toggle { display: none; align-items: center; gap: 9px; background: none; border: 2px solid var(--navy); border-radius: 8px; padding: 9px 14px; font-family: var(--font-display); font-weight: 700; color: var(--navy); cursor: pointer; }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle__bars span { display: block; width: 18px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
body.nav-open .nav-toggle__bars span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Desktop nav polish */
.main-nav .menu > li > a { position: relative; }
.main-nav .menu > li.menu-item-has-children > a::after,
.main-nav .menu > li.has-sub > a::after { content: "▾"; font-size: 0.65em; margin-left: 6px; color: var(--orange); }
.main-nav .sub-menu { border-top: 3px solid var(--orange); max-height: min(64vh, 560px); overflow-y: auto; min-width: 280px; padding: 10px; }
.main-nav .sub-menu::-webkit-scrollbar { width: 8px; }
.main-nav .sub-menu::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.main-nav .sub-menu a { border-radius: 6px; }
.main-nav .sub-menu a:hover { background: var(--orange-soft); color: var(--orange-dark); }
.submenu-toggle { display: none; }

/* Mobile nav: fixed height, scrollable, accordion submenus */
@media (max-width: 940px) {
	.nav-toggle { display: inline-flex; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
	.main-nav.open { display: block; max-height: calc(100vh - 150px); overflow-y: auto; overscroll-behavior: contain; }
	.main-nav ul.menu { flex-direction: column; align-items: stretch; padding: 10px 14px 18px; gap: 0; }
	.main-nav .menu > li { display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid var(--mist); }
	.main-nav .menu > li:last-child { border-bottom: none; }
	.main-nav .menu > li > a { padding: 14px 10px; font-size: 1.02rem; }
	/* Submenus start CLOSED on mobile; the chevron button opens them */
	.main-nav .sub-menu { display: none; position: static; box-shadow: none; border: none; border-top: none; max-height: none; overflow: visible; grid-column: 1 / -1; padding: 0 0 8px 14px; }
	.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: none; }
	.main-nav li.sub-open > .sub-menu { display: flex; flex-direction: column; }
	.main-nav .sub-menu a { padding: 10px 10px; color: var(--slate); }
	.submenu-toggle { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: none; background: var(--mist); border-radius: 8px; color: var(--navy); cursor: pointer; margin: 0 4px; }
	.submenu-toggle svg { width: 20px; height: 20px; transition: transform .2s ease; }
	li.sub-open > .submenu-toggle { background: var(--orange-soft); color: var(--orange-dark); }
	li.sub-open > .submenu-toggle svg { transform: rotate(180deg); }
	.main-nav .menu > li.menu-item-has-children > a::after, .main-nav .menu > li.has-sub > a::after { content: ""; margin: 0; }
	.nav-book { display: block; margin: 14px 10px 4px; text-align: center; grid-column: 1 / -1; }
}

/* Social bar: brand glyphs, round chips */
.social-bar { display: flex; gap: 10px; margin-top: 18px; }
.social-bar a { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--mist); color: var(--navy); border: 1px solid var(--line); transition: transform .15s ease, background .15s ease, color .15s ease; }
.social-bar a:hover { background: var(--orange); color: #fff; border-color: var(--orange); text-decoration: none; transform: translateY(-2px); }
.social-bar svg { width: 18px; height: 18px; }



/* ============ v2.3: header/nav + footer logo + sticky fixes ============ */

/* Desktop: nav is a flex row; the Book button keeps its natural size */
@media (min-width: 941px) {
  .main-nav { display: flex; align-items: center; gap: 6px; }
}
.nav-book { flex: none; white-space: nowrap; }

/* Sticky header stays visible below the WP admin bar */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* Header logo image (light artwork) */
.brand__img { height: 58px; width: auto; max-width: none; }
@media (max-width: 560px) { .brand__img { height: 46px; } }

/* Footer logo (white artwork with orange BIT) */
.footer-logo { width: 180px; height: auto; margin-bottom: 14px; }
.footer-tagline { color: #dce6ee;  font-weight: 700;}

/* ============ v2.4: hero background video ============ */
.hero--video { position: relative; }
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: 0;
}
.hero--img::before { z-index: 1; }
.hero .wrap { z-index: 2; }
@media (max-width: 860px) { .hero__video { object-position: center; } }
/* Respect reduced-motion: hide the video, the poster/background shows instead */
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }

/* ============ v3.0: hero fixed-height parallax, service card contrast, badges ============ */

/* Hero: SAME height on all screens; image at native aspect centered;
   sides filled by a gradient matching the artwork's edge colors. */
.hero { height: 640px; min-height: 0; }
.hero--img {
  background-color: #0e2f56;
  background-size: auto 640px, cover;
  background-position: center top, center;
  background-repeat: no-repeat;
  background-attachment: fixed, fixed;
}
.hero--img::before { display: none; }
@media (max-width: 1100px) {
  .hero { height: 560px; }
  .hero--img { background-size: auto 560px, cover; }
}
@media (max-width: 860px), (hover: none) {
  .hero { height: auto; min-height: 520px; }
  .hero--img {
    background-size: cover, cover;
    background-position: center, center;
    background-attachment: scroll, scroll;
  }
  .hero--img .hero__inner { background: rgba(13,34,51,0.55); padding: 20px; border-radius: 12px; backdrop-filter: blur(2px); }
}

/* Service cards: stronger contrast, bolder icons */
.grid--3 .card, .grid--4 .card { border: 1px solid var(--line); border-top: 4px solid var(--navy); background: #fff; }
.grid--3 .card:hover, .grid--4 .card:hover { border-top-color: var(--orange); }
.icon-badge {
  width: 62px; height: 62px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--navy), var(--navy-deep));
  color: #fff;
  box-shadow: 0 8px 18px rgba(18, 42, 63, 0.28);
}
.icon-badge svg { width: 32px; height: 32px; stroke-width: 1.9; color: #f5936b; }
.card:hover .icon-badge { background: linear-gradient(145deg, var(--orange), var(--orange-dark)); box-shadow: 0 8px 20px rgba(232,92,42,0.4); }
.card:hover .icon-badge svg { color: #fff; }
.card h3 { font-size: 1.22rem; }



/* Founder section */
.founder-card { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .founder-card { grid-template-columns: 1fr; } }
.founder-card blockquote { border-left: 4px solid var(--orange); margin: 0 0 18px; padding: 4px 0 4px 20px; font-size: 1.06rem; color: var(--ink); }
.founder-card .sig { font-family: var(--font-display); font-weight: 700; color: var(--navy); }

/* Footer logo: your artwork, sized down */
.footer-logo { width: 150px; height: auto; margin-bottom: 14px; }
.site-footer .social-bar svg { width: 20px; height: 20px; }


/* ============ v3.1: hero alignment, fused badges, centering, featured cards ============ */

/* Hero: image starts at the block's top and reaches its bottom.
   With parallax (fixed attachment) backgrounds anchor to the VIEWPORT, so we
   offset by the header height (~112px) — no more chopped top. */
.hero { align-items: flex-start; }
.hero .wrap { padding-top: 148px; padding-bottom: 40px; }
.hero--img { background-position: center top, center; }
.hero--parallax.hero--img { background-position: center 112px, center; }
@media (hover: none), (max-width: 860px) {
  .hero--parallax.hero--img { background-position: center top, center; }
}
@media (max-width: 1100px) { .hero .wrap { padding-top: 110px; } }
@media (max-width: 860px) {
  .hero { align-items: center; }
  .hero .wrap { padding-top: 64px; padding-bottom: 64px; }
  .hero--img { background-size: cover; background-position: center, center; }
}

/* Trust badges: fused to the hero — navy, no gap, larger type, hover pop */
.bn-badges { background: #12283a; padding: 0 24px 54px; margin-top: 0; }
.bn-badges::before { content: ""; display: block; height: 44px; background: linear-gradient(180deg, #16324e 0%, #12283a 100%); margin: 0 -24px 44px; }
.bn-badges__grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--navy);
    border: 1px solid var(--line);
    border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
}
.bn-badge {
  background: #0f2740; padding: 36px 22px 32px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 13px;
  transition: background .25s ease, box-shadow .25s ease;
}
.bn-badge__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(232,92,42,0.13); border: 1.5px solid rgba(232,92,42,0.4);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.bn-badge__icon svg { width: 30px; height: 30px; transition: transform .25s ease; }
.bn-badge__num { font-family: var(--font-display); font-weight: 800; font-size: 38px; color: #fff; line-height: 1; letter-spacing: -0.5px; transition: color .25s ease; }
.bn-badge__num--word { font-size: 24px; letter-spacing: 0.5px; }
.bn-badge__bar { width: 28px; height: 3px; background: var(--orange); border-radius: 2px; transition: width .3s ease; }
.bn-badge__title { font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1.5px; line-height: 1.45; margin: 0; }
.bn-badge__sub { font-size: 14px; color: #9fb2c2; line-height: 1.6; margin: 0; }
.bn-badge:hover {
  background: #17395c;
  box-shadow: inset 0 0 0 1px var(--orange), inset 0 -3px 0 var(--orange);
}
.bn-badge:hover .bn-badge__icon { background: var(--orange); border-color: var(--orange); transform: translateY(-4px) scale(1.1); }
.bn-badge:hover .bn-badge__icon svg { transform: scale(1.05); }
.bn-badge:hover .bn-badge__icon svg * { stroke: #fff; }
.bn-badge:hover .bn-badge__num { color: #ffb08a; }
.bn-badge:hover .bn-badge__bar { width: 52px; }
@media (max-width: 900px) { .bn-badges__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bn-badges__grid { grid-template-columns: 1fr; } }

/* Center content columns site-wide (prose was hugging the left) */
.entry-content { margin-left: auto; margin-right: auto; }

/* CTA band: centered stack instead of left-weighted row */
.cta-band { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.cta-band .btn-row { justify-content: center; margin-top: 0; }

/* Featured service cards (home, above the CTA) */
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }
a.fcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
a.fcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--orange); text-decoration: none; }
.fcard__media { aspect-ratio: 16/10; overflow: hidden; background: var(--mist); }
.fcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.fcard:hover .fcard__media img { transform: scale(1.06); }
.fcard__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.fcard__body h3 { margin: 0; font-size: 1.08rem; color: var(--navy); transition: color .2s ease; }
a.fcard:hover .fcard__body h3 { color: var(--orange-dark); }
.fcard__body p { margin: 0; color: var(--slate); font-size: 0.92rem; }
.fcard__body .more { margin-top: auto; padding-top: 8px; }

/* Dropdown: room for long service names on one line */
.main-nav .sub-menu { min-width: 340px; }
.main-nav .sub-menu a { white-space: nowrap; }
@media (max-width: 940px) { .main-nav .sub-menu a { white-space: normal; } }

/* Footer logo a touch larger */
.footer-logo { width: 170px; }

/* ============ v3.1.1: tight spacing + footer logo ============ */
.bn-badges { background: #fff; padding: 24px 24px 32px; }
.bn-badges::before { display: none; }
.footer-logo { width: 170px; margin: 2px 0 6px; display: block; }
.footer-brand p.footer-tagline { margin-top: 0; }

/* ============ v3.2: hero blend & alignment, footer logo, centering, menus ============ */

/* Kicker sits at shield height; no dead space above the artwork */
.hero .wrap { padding-top: 96px; }
.hero--parallax.hero--img { background-position: center var(--bn-hero-offset, 110px), center; }

/* Side fills sampled from the artwork's actual edge columns, with a 2px tuck
   under the image so no seam shows. Only needed when the viewport outgrows
   the 1181px-wide artwork. */
@media (min-width: 1200px) {
  .hero--img::before, .hero--img::after {
    content: ""; display: block; position: absolute; top: 0; bottom: 0; z-index: 0;
    width: calc(50% - 588px);
  }
  .hero--img::before { left: 0; background: linear-gradient(180deg, #0c2c53 0%, #10315a 100%); }
  .hero--img::after  { right: 0; background: linear-gradient(180deg, #143864 0%, #1d487b 100%); }
}
@media (max-width: 1100px) { .hero .wrap { padding-top: 84px; } }

/* Footer logo: transparent artwork, tight vertical spacing */
.footer-logo { width: 160px; height: auto; margin: 1px 0 10px; display: block; }

/* Interior page titles centered (services, service areas, all pages) */
.page-hero .wrap { text-align: center; }
.page-hero .crumbs { justify-content: center; }
.page-hero .lead { margin-left: auto; margin-right: auto; }

/* Dropdown: narrower, centered items */
.main-nav .sub-menu { min-width: 280px; }
.main-nav .sub-menu a { text-align: center; }

/* Header logo: subtle pop on hover (works for any swapped-in logo) */
.brand { transition: transform .18s ease, filter .18s ease; }
.brand:hover { transform: translateY(-1px) scale(1.02); filter: drop-shadow(0 8px 16px rgba(18,40,58,0.28)); text-decoration: none; }

/* Topbar: bigger phone, cleaner right side */
.topbar__phone { font-size: 1.02rem; font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.topbar__phone:hover { color: #ffb08a; text-decoration: none; }


/* ===== Custom tweaks ===== */
/* Contact: gray card around the form (matches info card) + orange submit */
.contact-form-col { background: var(--mist); border-radius: 16px; padding: 30px; }
.fluent_form_3 .ff-btn-submit,
.contact-form-col .ff-btn-submit { background-color: var(--orange) !important; border-color: var(--orange) !important; }
.fluent_form_3 .ff-btn-submit:hover,
.contact-form-col .ff-btn-submit:hover { background-color: #cf4e20 !important; border-color: #cf4e20 !important; }
.addr-note { font-size: .9em; opacity: .75; }

/* Match the "BitNetica" card title to the contact form typography */
.contact-info-card h3 { font-family: var(--font-body); color: var(--ink); font-weight: 600; letter-spacing: normal; }
