/* ============================================================
   Omnicon — single-page site
   Primary:   #0082C6 (brand blue)
   Secondary: #A8CF45 (brand green, from logo)
   ============================================================ */

@font-face {
  font-family: 'Bitwise';
  src: url('fonts/bitwise.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0082C6;
  --blue-dark: #006aa3;
  --blue-deeper: #003e60;
  --green: #A8CF45;
  --green-dark: #8fb53a;
  --ink: #0f1c26;
  --ink-2: #38505f;
  --muted: #67798a;
  --line: #e6ecf1;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --shadow-sm: 0 1px 2px rgba(15, 28, 38, 0.06), 0 1px 3px rgba(15, 28, 38, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 28, 38, 0.08), 0 2px 6px rgba(15, 28, 38, 0.05);
  --shadow-lg: 0 24px 60px rgba(15, 28, 38, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-dark); }

h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; }

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

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 12px;
}
.eyebrow.center { text-align: center; }
.center { text-align: center; }
.section-intro { max-width: 640px; margin: 0 auto 48px; color: var(--ink-2); font-size: 1.05rem; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ===================== Header ===================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 42px; }
.brand-name {
  font-family: 'Bitwise', 'Inter', system-ui, sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--blue);
  text-shadow: 2px 2px 0 var(--green);
  position: relative;
  top: 2px;
}

/* Footer brand lockup: scaled up 20% for visual weight */
.site-footer .brand-mark {
  width: 38px;
  height: 50px;
}
.site-footer .brand-name {
  color: #ffffff;
  text-shadow: 2px 2px 0 var(--green);
  font-size: 2.04rem;
}

/* Nav */
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: .96rem;
  padding: 6px 2px;
  position: relative;
}
.primary-nav a:not(.nav-cta):hover { color: var(--ink); }
.primary-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.primary-nav a:not(.nav-cta):hover::after,
.primary-nav a.is-active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--blue); color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: background .2s ease, transform .15s ease;
}
.nav-cta:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  padding: 10px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 4px 14px rgba(0, 130, 198, 0.32);
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 130, 198, 0.36); }
.btn-ghost {
  background: transparent; color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  color: #fff;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(0, 62, 96, 0.82) 0%, rgba(0, 62, 96, 0.55) 50%, rgba(0, 62, 96, 0.35) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35));
}
.hero-content {
  position: relative; z-index: 1;
  padding: 80px 24px;
  max-width: 880px;
}
.hero .eyebrow {
  color: var(--green);
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 680px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===================== Sections ===================== */
.section { padding: 96px 0; position: relative; }
.section.about { background: var(--bg); }
.section.services { background: var(--bg-alt); }
.section.contact { background: var(--bg); }

/* ===================== About ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-copy p { color: var(--ink-2); font-size: 1.05rem; }
.about-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.stats {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.stats li {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-number { font-size: 1.4rem; font-weight: 800; color: var(--blue); letter-spacing: -0.02em; }
.stat-label { font-size: .85rem; color: var(--muted); line-height: 1.4; }

/* ===================== Services ===================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-header {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 130, 198, 0.10), rgba(168, 207, 69, 0.22));
  color: var(--blue);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.service-header svg { width: 56px; height: 56px; }
.service-card--photo .service-header {
  background: var(--bg-alt);
}
.service-card--photo .service-header img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.service-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-body h3 { margin: 0 0 8px; font-size: 1.1rem; }
.service-body p { margin: 0; color: var(--ink-2); font-size: .96rem; }

/* ===================== Contact ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: stretch;
}
.contact-copy p { color: var(--ink-2); font-size: 1.05rem; }

.contact-list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex; flex-direction: column; gap: 16px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}
.contact-label {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.contact-list a {
  color: var(--ink);
  font-weight: 500;
  word-break: break-word;
}
.contact-list a:hover { color: var(--blue); }

.contact-map {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.contact-map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ===================== Footer ===================== */
.site-footer {
  background: var(--blue-deeper);
  color: rgba(255, 255, 255, 0.85);
  padding: 32px 0;
}
.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: #fff; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.footer-copy { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, 0.7); }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: rgba(255, 255, 255, 0.85); font-weight: 500; font-size: .95rem; }
.footer-nav a:hover { color: #fff; }

/* ===================== Responsive ===================== */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { order: -1; }
  .about-media img { aspect-ratio: 16 / 10; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-map { min-height: 320px; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }

  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform .3s ease;
    visibility: hidden;
  }
  .primary-nav.is-open { transform: translateY(0); visibility: visible; }
  .primary-nav a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .primary-nav a:last-child { border-bottom: 0; }
  .primary-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta {
    margin-top: 12px;
    text-align: center;
    border-radius: 10px !important;
  }

  .hero { min-height: 88vh; }
  .hero-content { padding: 60px 24px; }
  .hero-actions .btn { flex: 1; }

  .stats { grid-template-columns: 1fr; }

  .service-grid { grid-template-columns: 1fr; }
  .service-header { height: 180px; }

  .contact-list li { grid-template-columns: 1fr; gap: 4px; padding: 14px; }

  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
}

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