/* ==========================================================================
   Brightbyte IT Solutions FZ-LLC
   ========================================================================== */

:root {
  --navy-900: #0b1a27;
  --navy-800: #0f2233;
  --navy-700: #16354d;
  --navy-600: #21445f;
  --accent:   #3d8fb8;
  --accent-2: #5fb3d4;

  --ink:      #16202a;
  --ink-soft: #46545f;
  --ink-mute: #6d7b86;

  --bg:       #ffffff;
  --bg-alt:   #f4f7f9;
  --line:     #e0e7ec;
  --line-2:   #cfd9e0;

  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1140px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(11, 26, 39, .06), 0 2px 8px rgba(11, 26, 39, .05);
  --shadow-md: 0 4px 12px rgba(11, 26, 39, .07), 0 12px 32px rgba(11, 26, 39, .07);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--navy-600); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-800);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
}
.skip:focus { left: 0; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}
.brand-mark rect {
  fill: none;
  stroke: var(--navy-600);
  stroke-width: 2.4;
}
.brand-mark path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--navy-800);
}
.brand-sub {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.site-nav { display: flex; align-items: center; gap: 6px; }

.site-nav a {
  padding: 9px 13px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease;
}
.site-nav a:hover { color: var(--navy-700); background: var(--bg-alt); }

.site-nav .nav-cta {
  margin-left: 6px;
  background: var(--navy-700);
  color: #fff;
  padding: 9px 18px;
}
.site-nav .nav-cta:hover { background: var(--navy-600); color: #fff; }

/* mobile nav (CSS only) */
.nav-toggle { display: none; }
.nav-button { display: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: transform .12s ease, background-color .16s ease, box-shadow .16s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #34809f; }

.btn-ghost {
  background: transparent;
  color: #dce8ef;
  border: 1px solid rgba(220, 232, 239, .38);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

.btn-block { display: block; width: 100%; margin-top: 22px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 72px);
  background-color: var(--navy-800);
  background-image: url("/hero.svg?v=4");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: #eaf2f7;
}

.hero-content {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.hero-inner {
  padding: 80px 24px;
  max-width: 900px;
  margin-inline: auto;
  text-align: left;
  width: 100%;
}

.eyebrow {
  margin: 0 0 22px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(38px, 6.2vw, 62px);
  line-height: 1.07;
  letter-spacing: -.03em;
  font-weight: 700;
  color: #fff;
}

.lede {
  margin: 0 0 36px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: #b9cddb;
  max-width: 42em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-strip {
  flex: 0 0 auto;
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(8, 21, 33, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .12);
  border-inline: 1px solid rgba(255, 255, 255, .12);
  padding: 0;
  max-width: var(--wrap);
}

.strip-item {
  background: rgba(9, 24, 37, .88);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.strip-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #6d8ba1;
}
.strip-value {
  font-size: 15px;
  font-weight: 600;
  color: #dbe8f0;
  line-height: 1.35;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: 86px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-dark {
  background: linear-gradient(168deg, var(--navy-800), var(--navy-900));
  color: #e6eff5;
}

.section-eyebrow {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-dark .section-eyebrow { color: var(--accent-2); }

.section-title {
  margin: 0 0 20px;
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.14;
  letter-spacing: -.024em;
  font-weight: 700;
  color: var(--navy-800);
}
.section-dark .section-title { color: #fff; }

.section-lede {
  margin: 0 0 48px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46em;
}
.section-dark .section-lede { color: #a9c2d3; }

/* ==========================================================================
   Service cards
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 26px;
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}

/* icon badges (services + approach) */
.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: linear-gradient(145deg, #eaf3f8, #dbeaf2);
  border: 1px solid #cbdde8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.icon-badge svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--navy-600);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card:hover .icon-badge {
  background: linear-gradient(145deg, #e0eef6, #cfe4ef);
  border-color: #b6d2e1;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--navy-800);
}

.card p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 16px;
}

/* tick lists */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ==========================================================================
   Approach
   ========================================================================== */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 44px;
}
@media (max-width: 900px) {
  .approach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .approach-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}

.approach-item .icon-badge {
  background: #fff;
  border-color: var(--line-2);
}
.approach-item h3 {
  margin: 0 0 10px;
  font-size: 19px;
  letter-spacing: -.012em;
  color: var(--navy-800);
}
.approach-item p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ==========================================================================
   Clients
   ========================================================================== */

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 26px;
}

.client-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}

.client-card h3 {
  margin: 0 0 5px;
  font-size: 18.5px;
  line-height: 1.28;
  letter-spacing: -.014em;
  color: var(--navy-800);
}
.client-meta {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--ink-mute);
}
.client-tag {
  display: inline-block;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eaf3f8;
  border: 1px solid #cfe3ee;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy-600);
}
.client-tag.is-quiet {
  background: transparent;
  border-color: var(--line-2);
}
.client-tag a { color: var(--navy-600); text-decoration: none; }
.client-tag a:hover { color: var(--accent); }

.client-logo {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.client-logo svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ink-mute);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* closing "and many more" tile */
.client-card.client-more {
  border-style: dashed;
  border-color: var(--line-2);
  background: #fbfcfd;
  box-shadow: none;
}
.client-card.client-more h3 { color: var(--ink-soft); }


/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}

.response-note {
  margin: 0;
  font-size: 15px;
  color: var(--ink-mute);
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px 28px 30px;
  box-shadow: var(--shadow-md);
}

.contact-row {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.contact-row:last-of-type { border-bottom: 0; }

.contact-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.contact-value {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-700);
  line-height: 1.45;
  word-break: break-word;
}
a.contact-row:hover .contact-value { color: var(--accent); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-900);
  color: #93aec2;
  padding: 54px 0 40px;
  font-size: 14.5px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  line-height: 1.6;
}
.footer-brand strong { color: #fff; font-size: 16px; }
.footer-brand .brand-mark rect { stroke: rgba(255, 255, 255, .45); }
.footer-brand .brand-mark path { stroke: var(--accent-2); }

.footer-legal { max-width: 460px; }
.footer-legal p { margin: 0 0 14px; line-height: 1.65; }
.copyright { color: #64809a; font-size: 13.5px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .nav-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 9px;
    cursor: pointer;
    border-radius: 8px;
  }
  .nav-button span {
    display: block;
    height: 2px;
    background: var(--navy-700);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked ~ .nav-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-button span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav a { padding: 13px 12px; font-size: 16px; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }

  .hero { min-height: 0; }
  .hero-inner { padding: 68px 24px 62px; }
  .section { padding: 64px 0; }
  .btn { display: block; width: 100%; }
  .hero-actions { flex-direction: column; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .strip-inner { grid-template-columns: minmax(0, 1fr); }
  .brand-sub { display: none; }
}

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

/* ==========================================================================
   Footer links
   ========================================================================== */

.footer-legal a { color: #b7cddd; text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

.footer-links { margin: 0 0 14px; }
.linklike {
  color: #b7cddd;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.linklike:hover { color: #fff; }

/* ==========================================================================
   Overlay (privacy policy) — CSS only, no JavaScript
   ========================================================================== */

.overlay-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.overlay-toggle:checked ~ .overlay { display: flex; }

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 21, 33, .72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: pointer;
}

.overlay-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(84vh, 900px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(8, 21, 33, .45);
  overflow: hidden;
}

.overlay-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.overlay-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--navy-800);
}

.overlay-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .16s ease;
}
.overlay-close:hover { background: var(--bg-alt); }
.overlay-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 2;
  stroke-linecap: round;
}

.overlay-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 26px;
}
.overlay-body h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  letter-spacing: -.008em;
  color: var(--navy-800);
}
.overlay-body h3:first-of-type { margin-top: 8px; }
.overlay-body p {
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.overlay-updated {
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-mute) !important;
}

.overlay-foot {
  flex: 0 0 auto;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  text-align: right;
}
.overlay-foot .btn { cursor: pointer; }

@media (max-width: 560px) {
  .overlay { padding: 0; align-items: stretch; }
  .overlay-panel {
    width: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .overlay-foot { text-align: stretch; }
}

/* ==========================================================================
   Security practice
   ========================================================================== */

/* Four service cards sit 2x2 rather than 3 + 1 orphan. */
@media (min-width: 901px) {
  .cards-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card-link {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.card-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.card-link a:hover { text-decoration: underline; }

.auth-note {
  margin: 34px 0 0;
  padding: 20px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.auth-note strong { color: var(--ink); }

/* Hero service strip: four items, halving down the breakpoints. */
@media (max-width: 900px) {
  .strip-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   Policy page
   ========================================================================== */

.policy-page { padding: 56px 0 72px; }
.policy-page .policy-updated {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--ink-mute);
}
.policy-page h2 {
  margin: 38px 0 12px;
  font-size: 21px;
  line-height: 1.3;
  color: var(--ink);
}
.policy-page h2:first-of-type { margin-top: 26px; }
.policy-page p,
.policy-page li { color: var(--ink-soft); }
.policy-page ul { padding-left: 22px; }
.policy-page li { margin-bottom: 8px; }
.policy-narrow { max-width: 760px; }
