:root {
  --navy: #0b4056;
  --navy-deep: #060d3b;
  --accent: #d1800f;
  --ink: #3f485d;
  --muted: #6b7385;
  --line: #e8ebf0;
  --surface: #f4f6f8;
  --white: #ffffff;
  --max: 1140px;
  --header-h: 4.5rem;
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.68px;
  color: var(--ink);
  background: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.68px;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Beat Mobirise .container rules when both stylesheets are present */
.site-header .container.header-inner,
.site-header .header-inner,
.site-footer .container.footer-grid,
.site-footer .footer-grid {
  width: min(100% - 2rem, var(--max)) !important;
  max-width: var(--max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

.site-header .brand img {
  width: 84px !important;
  height: 56px !important;
  max-width: 84px !important;
  object-fit: contain !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--navy-deep);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(11, 64, 86, 0.06);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 84px;
  height: 56px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #4a5568;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--navy);
}

.nav-cta {
  margin-left: 0.25rem;
}

/*
 * Lock header chrome against Mobirise inline CSS on legacy pages
 * (otherwise JOIN button / spacing diverge from index + contact).
 */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 0 !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.site-header .nav {
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-header .nav-list {
  display: flex !important;
  align-items: center !important;
  gap: 1.25rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-header .nav-list a {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-family: var(--font-body) !important;
  font-size: 1.0625rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  line-height: 1.7 !important;
  color: #4a5568 !important;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

.site-header .nav-list a:hover,
.site-header .nav-list a[aria-current="page"] {
  color: var(--navy) !important;
}

.site-header .btn,
.site-header .nav-cta,
.site-header a.btn.nav-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  margin: 0 0 0 0.25rem !important;
  padding: 0.85rem 1.5rem !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: var(--navy) !important;
  color: var(--white) !important;
  font-family: var(--font-display) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  line-height: 1.7 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(rgba(89, 89, 89, 0.35), rgba(11, 64, 86, 0.45)),
    url("../assets/images/hero-desk.jpg") center / cover no-repeat;
  overflow: hidden;
}

.hero-content {
  width: min(100% - 2rem, 52rem);
  padding: 4rem 0;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s ease forwards 0.05s;
}

.hero .eyebrow {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s ease forwards 0.15s;
}

.hero .tagline {
  margin: 0.35rem 0 0.85rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s ease forwards 0.25s;
}

.hero .hero-ai {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.55;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s ease forwards 0.4s;
}

.hero .btn {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease forwards 0.6s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  padding: 4.5rem 0;
}

.section-muted {
  background: var(--surface);
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 2.5rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

.service-grid.two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 48rem;
  margin-inline: auto;
}

.service {
  text-align: center;
}

.service h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.service p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.service a {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
}

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

.story {
  display: grid;
  gap: 2rem;
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.story-visual {
  position: relative;
  margin-inline: auto;
  width: min(100%, 34rem);
}

.cdp-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1568 / 1506;
  overflow: visible;
}

.cdp-base,
.cdp-channel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.cdp-base {
  position: relative;
}

.cdp-channel {
  opacity: 0;
  transform: scale(1.85);
  transform-origin: center center;
  pointer-events: none;
  will-change: transform, opacity;
}

.cdp-channel--social { transform-origin: 27% 11%; }
.cdp-channel--crm { transform-origin: 73% 11%; }
.cdp-channel--advertising { transform-origin: 95% 50%; }
.cdp-channel--web { transform-origin: 73% 88%; }
.cdp-channel--mobile { transform-origin: 28% 88%; }
.cdp-channel--pos { transform-origin: 5% 50%; }

.cdp-stage.is-animated .cdp-channel {
  animation: channel-fly-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cdp-stage.is-animated .cdp-channel--social { animation-delay: 0.05s; }
.cdp-stage.is-animated .cdp-channel--pos { animation-delay: 0.12s; }
.cdp-stage.is-animated .cdp-channel--crm { animation-delay: 0.18s; }
.cdp-stage.is-animated .cdp-channel--mobile { animation-delay: 0.24s; }
.cdp-stage.is-animated .cdp-channel--advertising { animation-delay: 0.3s; }
.cdp-stage.is-animated .cdp-channel--web { animation-delay: 0.36s; }

@keyframes channel-fly-in {
  from {
    opacity: 0;
    transform: scale(1.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cdp-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .cdp-channel {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

.story p {
  color: var(--muted);
  text-align: left;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.why-item h3 {
  font-size: 1.15rem;
}

.why-item p {
  color: var(--muted);
  margin: 0;
}

.partner-grid,
.client-grid,
.location-grid {
  display: grid;
  gap: 1.75rem;
}

.partner-grid {
  grid-template-columns: repeat(3, 1fr);
}

.partner-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 48rem;
  margin-inline: auto;
}

.partner {
  text-align: center;
}

.partner img {
  height: 72px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 1rem;
  background: #fff;
  padding: 1.1rem 1.25rem;
  box-sizing: border-box;
}

.partner--eggs img,
.partner--adobe img {
  max-width: none;
}

.partner p {
  color: var(--muted);
}

.quote {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: center;
  max-width: 52rem;
  margin-inline: auto;
  background: var(--surface);
  padding: 1.75rem;
  border-left: 4px solid var(--accent);
}

.quote img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
}

.quote blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
}

.quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
}

.client-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 1.25rem;
}

.client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid rgba(11, 64, 86, 0.18);
}

.client-card img {
  max-height: 5.5rem;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.location-grid {
  grid-template-columns: repeat(3, 1fr);
}

.location {
  position: relative;
  min-height: 280px;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.location img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.location::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 64, 86, 0.2), rgba(11, 64, 86, 0.75));
  z-index: -1;
}

.location-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 280px;
  padding: 1.5rem;
}

.location h3 {
  color: var(--white);
  font-size: 1.4rem;
}

.location h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.location p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.contact-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
}

.map-frame {
  border: 0;
  width: 100%;
  min-height: 360px;
  background: var(--surface);
}

.map-static {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: var(--surface);
  overflow: hidden;
}

.map-static img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 42%;
}

.contact-details {
  background: var(--navy);
  color: var(--white);
  padding: 2rem;
}

.contact-details h3,
.contact-details h4 {
  color: var(--white);
}

.contact-details p {
  margin-bottom: 1.25rem;
}

.contact-details a {
  color: #cfe8f3;
}

.site-footer {
  background: linear-gradient(180deg, #0b4056 0%, #0a3446 42%, #060d3b 78%, #000000 100%);
  color: rgba(255, 255, 255, 0.86);
  padding: 6.25rem 0; /* doubled from 3.125rem */
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer strong {
  color: var(--white);
}

/* Shared row tracks so left/right lines stay level (Company↔Contact Information, ©↔email) */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-rows: repeat(5, auto);
  column-gap: 2rem;
  row-gap: 0.85rem;
  align-items: start;
}

.footer-col {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  min-width: 0;
}

.footer-col > * {
  margin: 0;
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-contact {
  background:
    linear-gradient(rgba(89, 89, 89, 0.35), rgba(11, 64, 86, 0.5)),
    url("../assets/images/contact-hero.jpg") center / cover no-repeat;
  min-height: 70vh;
}

.hero-services {
  background:
    linear-gradient(rgba(89, 89, 89, 0.28), rgba(11, 64, 86, 0.42)),
    url("../assets/images/services-hero-desk.jpg") center / cover no-repeat;
}

/* Keep hero type + rise animation intact on Mobirise legacy pages */
.hero h1,
.hero .tagline,
.hero .eyebrow,
.hero .hero-ai {
  font-family: var(--font-display) !important;
  color: var(--white) !important;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.45rem) !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  line-height: 1.35 !important;
  margin: 0.35rem 0 1.75rem !important;
  padding: 0 !important;
}

.hero > .hero-content > .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0.85rem 1.5rem !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: var(--navy) !important;
  color: var(--white) !important;
  font-family: var(--font-display) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  line-height: 1.7 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

.hero-contact .hero-content {
  padding: 5rem 0;
}

.hero-contact h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

.contact-email-section {
  background: var(--surface);
}

.contact-email-wrap {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.contact-email-wrap > p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .service-grid,
  .service-grid.two,
  .why-grid,
  .partner-grid,
  .client-grid,
  .location-grid,
  .contact-block,
  .footer-grid,
  .quote {
    grid-template-columns: 1fr;
  }

  .map-static {
    min-height: 16rem;
    aspect-ratio: 1024 / 601;
    height: auto;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a,
  .nav-cta {
    display: block;
    padding: 0.85rem 0.25rem;
  }

  .nav-cta {
    text-align: center;
    margin: 0.5rem 0 0;
  }

  .story p {
    text-align: center;
  }

  .quote {
    justify-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero h1,
  .hero .eyebrow,
  .hero .tagline,
  .hero .hero-ai,
  .hero .btn,
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
