/* ==========================================================================
   docksurge.com
   Navy and blue from the DockSurge™ logo (brand edition 2, 18 Nov 2026), on
   the dark look of the owner's homepage design (design/homepage-mockup.png).
   Montserrat for headings, Inter for reading; both served from /fonts.
   Text colours are checked against the darkest background: --muted 9:1,
   --faint 5.6:1, --sky 7:1; white on --blue buttons 5.8:1.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --bg: #010A1F;
  --bg-2: #021433;
  --navy: #02173C;
  --card: rgba(255, 255, 255, .035);
  --card-hover: rgba(255, 255, 255, .06);
  --line: rgba(130, 170, 255, .16);
  --line-strong: rgba(130, 170, 255, .3);
  --blue: #0055FE;
  --blue-hover: #1E6BFF;
  --sky: #3FA2FF;
  --text: #EEF3FF;
  --muted: #A9B7D6;
  --faint: #7F8DAE;
  --radius: 16px;
  --header: 84px;
  --head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

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

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15.5px/1 var(--head); color: #fff; white-space: nowrap; text-decoration: none !important;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--blue); box-shadow: 0 10px 30px -10px rgba(0, 85, 254, .8); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #E8F0FF; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--head); color: var(--sky); white-space: nowrap; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ------------------------------------------------------------------ header */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent; transition: background .25s, border-color .25s;
}
.site-header.is-scrolled, .site-header.nav-open {
  background: rgba(1, 10, 31, .88); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header); }
.brand img { width: 182px; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav > ul { display: flex; align-items: center; gap: 34px; }
.nav > ul > li > a { position: relative; display: block; padding: 10px 0; font: 600 15.5px/1 var(--head); color: #fff; text-decoration: none; }
.nav > ul > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; border-radius: 3px;
  background: var(--blue); transform: scaleX(0); transition: transform .2s;
}
.nav > ul > li > a:hover::after, .nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }

.has-menu { position: relative; display: flex; align-items: center; gap: 4px; }
.menu-btn { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: none; color: #fff; cursor: pointer; }
.menu-btn .icon { width: 17px; height: 17px; transition: transform .2s; }
.submenu {
  position: absolute; top: calc(100% + 18px); left: -18px; min-width: 320px; padding: 8px;
  background: #031436; border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.has-menu:hover .submenu, .has-menu:focus-within .submenu, .has-menu.open .submenu { opacity: 1; visibility: visible; transform: none; }
.has-menu:hover .menu-btn .icon, .has-menu.open .menu-btn .icon { transform: rotate(180deg); }
.submenu a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #fff; font: 600 14.5px/1.3 var(--head); text-decoration: none; }
.submenu a:hover { background: rgba(63, 162, 255, .1); }
.submenu .icon { width: 20px; height: 20px; color: var(--sky); }

.nav-toggle { display: none; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line-strong); border-radius: 10px; background: none; color: #fff; cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .i-close, .nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

/* ------------------------------------------------------------------ home hero */

.hero {
  position: relative; overflow: hidden; padding-top: var(--header);
  background:
    radial-gradient(55% 70% at 82% 28%, rgba(0, 85, 254, .3), transparent 70%),
    radial-gradient(45% 55% at 8% 6%, rgba(30, 107, 255, .14), transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
/* As in the design, the headline runs over the photo's faded left side: the
   photo sits behind the text, anchored to the hero's bottom right. */
.hero-grid { position: relative; }
.hero-copy { position: relative; z-index: 2; max-width: 800px; padding: 96px 0 150px; }
.eyebrow { font: 600 13px/1.3 var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--sky); }
.hero .eyebrow, .page-hero .eyebrow { color: #D7E1F5; }
.eyebrow-line { display: inline-flex; align-items: center; gap: 18px; }
.eyebrow-line::after { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--blue); }
.hero h1 { margin: 24px 0; font-size: clamp(2.4rem, 4.3vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
.grad { background: linear-gradient(90deg, #1F7BFF 0%, #45ADFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 34em; font-size: 1.125rem; color: var(--muted); }
.hero .lead { color: #D3DCF0; }
.hero .actions { margin-top: 36px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; color: var(--muted); font-size: 14.5px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .icon { width: 18px; height: 18px; color: var(--sky); }
/* The photo reaches the right edge of the window and fades into the page on
   its other three sides. */
.hero-media { position: absolute; z-index: 1; bottom: 0; right: calc(-1 * max(0px, (100vw - 1200px) / 2)); width: min(52vw, 820px); }
.hero-media img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%), linear-gradient(to bottom, transparent 0%, #000 16%, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 26%), linear-gradient(to bottom, transparent 0%, #000 16%, #000 76%, transparent 100%);
  mask-composite: intersect;
}
.wave { position: relative; z-index: 1; width: 100%; height: 110px; margin-top: -86px; pointer-events: none; }

.service-strip { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 8px 0 64px; }
.service-strip li + li { border-left: 1px solid var(--line); }
.service-strip a {
  display: flex; flex-direction: column; align-items: center; gap: 16px; height: 100%; padding: 8px 18px;
  color: #fff; text-align: center; font: 600 16px/1.35 var(--head); text-decoration: none;
}
.service-strip .icon { width: 42px; height: 42px; color: var(--blue); stroke-width: 1.5; transition: color .2s, transform .2s; filter: drop-shadow(0 0 10px rgba(0, 85, 254, .45)); }
.service-strip a:hover .icon { color: var(--sky); transform: translateY(-3px); }

/* ------------------------------------------------------------------ inner page hero */

.page-hero {
  position: relative; overflow: hidden; padding: calc(var(--header) + 80px) 0 84px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(50% 80% at 88% 0%, rgba(0, 85, 254, .28), transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.page-hero h1 { max-width: 15em; margin: 20px 0; font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; }
.page-hero .lead { color: #D3DCF0; }
.page-hero .actions { margin-top: 32px; }
.page-hero .wave { position: absolute; left: 0; bottom: -40px; margin: 0; opacity: .7; }

/* ------------------------------------------------------------------ sections */

.section { padding: 100px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { margin: 14px 0 16px; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }

.cards { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .2s, background .2s, transform .2s; }
.card:hover { border-color: var(--line-strong); background: var(--card-hover); transform: translateY(-3px); }
.card > .icon { width: 30px; height: 30px; margin-bottom: 22px; color: var(--sky); }
.card h3 { margin-bottom: 10px; font-size: 1.15rem; font-weight: 700; }
.card p { color: var(--muted); font-size: .97rem; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.steps li { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); counter-increment: step; }
.steps li::before { content: "0" counter(step); position: absolute; top: 26px; right: 28px; font: 800 1.7rem/1 var(--head); color: rgba(130, 170, 255, .2); }
.step-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border-radius: 14px; background: rgba(0, 85, 254, .18); color: var(--sky); }
.step-icon .icon { width: 26px; height: 26px; }
.steps h3 { margin-bottom: 10px; font-size: 1.15rem; font-weight: 700; }
.steps p { color: var(--muted); font-size: .97rem; }

.project-art {
  display: grid; place-items: center; height: 156px; margin-bottom: 24px; border-radius: 12px; border: 1px solid var(--line);
  background: radial-gradient(80% 100% at 75% 10%, rgba(0, 85, 254, .5), transparent 70%), linear-gradient(135deg, #052457, #021433);
}
.project-art .icon { width: 56px; height: 56px; color: #fff; stroke-width: 1.4; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tags span { padding: 6px 11px; border: 1px solid rgba(63, 162, 255, .28); border-radius: 999px; background: rgba(63, 162, 255, .1); color: var(--sky); font: 600 12px/1 var(--head); letter-spacing: .03em; }

.ticks { display: grid; gap: 11px; margin-top: 22px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; }
.ticks .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--sky); }

/* services page */
.service-list { display: grid; gap: 22px; }
.service { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 32px; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.service-icon { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 22px; border: 1px solid rgba(63, 162, 255, .3); background: linear-gradient(135deg, rgba(0, 85, 254, .4), rgba(0, 85, 254, .08)); color: #fff; }
.service-icon .icon { width: 42px; height: 42px; stroke-width: 1.5; }
.service h2 { margin-bottom: 12px; font-size: 1.6rem; font-weight: 800; }
.service p { max-width: 46em; color: var(--muted); }
.service .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 28px; }

/* projects page */
.project-list { display: grid; gap: 28px; }
.project-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 44px; align-items: start; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.project-row .project-art { height: 100%; min-height: 260px; margin: 0; }
.project-row .project-art .icon { width: 84px; height: 84px; }
.project-row h2 { margin-bottom: 14px; font-size: 1.7rem; font-weight: 800; }
.project-row p { color: var(--muted); }

/* about page */
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: start; }
.prose h2 { margin-bottom: 18px; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; }
.prose p { color: var(--muted); font-size: 1.07rem; }
.prose p + p { margin-top: 16px; }
.facts { padding: 30px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: linear-gradient(160deg, rgba(0, 85, 254, .16), rgba(255, 255, 255, .02)); }
.facts dl { display: grid; gap: 18px; margin: 0; }
.facts dt { font: 600 12px/1.3 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.facts dd { margin: 4px 0 0; color: var(--text); }

/* contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); text-decoration: none !important; transition: border-color .2s, background .2s; }
a.contact-card:hover { border-color: var(--line-strong); background: var(--card-hover); }
.contact-card > .icon { width: 26px; height: 26px; color: var(--sky); margin-top: 2px; }
.contact-card b { display: block; margin-bottom: 4px; font: 700 15px/1.3 var(--head); }
.contact-card span { color: var(--muted); overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ call to action */

.cta { padding: 0 0 100px; }
.cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 56px; border-radius: 24px;
  background: radial-gradient(70% 140% at 100% 0%, rgba(69, 173, 255, .55), transparent 60%), linear-gradient(120deg, #0040CC, #0055FE 55%, #1F7BFF);
  box-shadow: 0 30px 80px -30px rgba(0, 85, 254, .65);
}
.cta-box h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
.cta-box p { margin-top: 10px; color: #E3ECFF; font-size: 1.06rem; }

/* ------------------------------------------------------------------ footer */

.site-footer { padding-top: 68px; border-top: 1px solid var(--line); background: #010818; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.1fr .8fr 1.3fr; gap: 40px; }
.footer-brand p { max-width: 24em; margin-top: 18px; color: var(--faint); font-size: .95rem; }
.site-footer h2 { margin-bottom: 18px; font: 700 13px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.site-footer ul { display: grid; gap: 11px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: #fff; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); }
.contact-list .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--sky); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding: 26px 0 30px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }

/* ------------------------------------------------------------------ smaller screens */

@media (max-width: 1200px) {
  .hero-copy { max-width: 620px; }
  .hero-media { width: 50vw; }
}

@media (max-width: 1080px) {
  .nav { gap: 28px; }
  .nav > ul { gap: 24px; }
  .cards-4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service .ticks { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
  :root { --header: 72px; }
  .brand img { width: 160px; }
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - var(--header)); overflow-y: auto; padding: 4px 24px 26px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  /* Solid while the menu is open: a blurred, see-through bar let the page
     show through the panel below it. */
  .site-header.nav-open { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-open .nav { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li > a { padding: 17px 0; border-bottom: 1px solid var(--line); }
  .nav > ul > li > a::after { display: none; }
  .has-menu { display: block; }
  .menu-btn { display: none; }
  .submenu { position: static; min-width: 0; padding: 6px 0 10px; border: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .submenu::before { display: none; }
  .nav-cta { margin-top: 22px; }

  .hero-copy { max-width: none; padding: 48px 0 8px; }
  .hero-media { position: relative; right: auto; bottom: auto; width: auto; margin: 0 -24px; }
  .hero-media img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 78%, transparent 100%);
  }
  .wave { margin-top: -60px; height: 80px; }
  .cards-3 { grid-template-columns: minmax(0, 1fr); }
  .project-row, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .project-row .project-art { min-height: 180px; }
}

@media (max-width: 700px) {
  .eyebrow { font-size: 12px; letter-spacing: .14em; }
  .eyebrow-line { gap: 12px; }
  .eyebrow-line::after { width: 24px; }
  .section { padding: 72px 0; }
  .page-hero { padding: calc(var(--header) + 48px) 0 64px; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .service-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 48px; }
  .service-strip li + li { border-left: 0; }
  .service-strip li { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
  .service-strip li:last-child { grid-column: 1 / -1; }
  .service-strip a { padding: 20px 12px; font-size: 14.5px; gap: 12px; }
  .service-strip .icon { width: 34px; height: 34px; }
  .cards-4, .steps, .contact-cards, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .service { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 28px; }
  .service-icon { width: 72px; height: 72px; border-radius: 18px; }
  .service-icon .icon { width: 34px; height: 34px; }
  .project-row { padding: 26px; gap: 26px; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .btn-lg { width: 100%; }
}
