:root {
  --ink: #333333;
  --muted: #666666;
  --teal: #00A2D2;
  --teal-dark: #006C8C;
  --teal-light: #71C7E1;
  --paper: #fafafa;
  --line: #e6e6e6;
  --black: #222222;
  --white: #ffffff;
  --font-head: 'Ubuntu', Helvetica, Arial, sans-serif;
  --font-body: 'Nunito Sans', 'futura-lt-w01-book', Helvetica, Arial, sans-serif;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  line-height: 1.55;
}

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

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

/* ── HEADER / NAV ── */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
  color: var(--white);
}

.nav {
  width: 100%;
  min-height: 110px;
  display: flex;
  align-items: stretch;
  margin: 0;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(51, 51, 51, 0.8);
  padding: 16px 24px;
  min-width: 180px;
  flex-shrink: 0;
  text-decoration: none;
  gap: 5px;
}

.brand img {
  width: 145px;
  height: auto;
}

.brand-tag {
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  font-family: var(--font-head);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.4);
  color: var(--white);
  background: transparent;
  font-size: 22px;
  align-self: center;
  margin-left: auto;
  margin-right: 18px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex: 1;
  padding: 0 60px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 4px 16px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,.95);
  letter-spacing: normal;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  border-bottom: 2px solid var(--white);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 290px;
  display: none;
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 35px rgba(0,0,0,.2);
  z-index: 30;
}

.nav-item:hover .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px 18px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.48px;
  transition: background 0.15s;
}

.dropdown a:hover {
  color: var(--teal);
  background: rgba(0,0,0,.05);
}

/* ── HOMEPAGE HERO ── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--white);
  background: #1a2a35 center/cover no-repeat;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Exact gradient from live site: top-darkening overlay */
  background: linear-gradient(0deg, rgba(106,145,158,0) 26.96%, rgba(0,0,0,0.5) 75.61%);
}

.hero > .inner {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 140px 0 80px; /* top padding clears the 110px header */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  max-width: 920px;
  margin: 0 auto 22px;
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.hero p {
  max-width: 680px;
  margin: 0 auto 14px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0,0,0,.2);
}

.hero .get-ready {
  font-size: 16px;
  margin: 0 auto 32px;
}

.hero .get-ready a {
  text-decoration: underline;
  color: var(--white);
}

.hero-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,.75);
  color: var(--white);
  font-size: 20px;
  text-decoration: none;
  animation: bounce 2.2s ease-in-out infinite;
  cursor: pointer;
  background: transparent;
}

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
}

/* ── INNER PAGE BANNER ── */
.page-banner {
  padding: 0;
  padding-top: 110px; /* clears transparent header */
  text-align: center;
  position: relative;
  background-color: #d8d8d8;
  background-size: cover;
  background-position: center;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(215, 215, 215, .84);
}

.page-banner .inner {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 64px;
}

.page-banner h1 {
  color: var(--teal);
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: normal;
  margin: 0 0 14px;
}

.page-banner .tagline-sub {
  color: #555;
  font-family: var(--font-body);
  font-size: 17px;
  font-style: italic;
  margin: 0 auto 24px;
  max-width: 700px;
}

.page-banner .description {
  color: #444;
  font-family: var(--font-body);
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto 28px;
  line-height: 1.7;
  text-align: left;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.actions.center {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 2px solid var(--teal);
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.button:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.button.secondary {
  background: transparent;
  color: var(--teal);
}

.button.secondary:hover {
  background: var(--teal);
  color: var(--white);
}

.button.light {
  color: var(--teal-dark);
  background: var(--white);
  border-color: var(--white);
  border-radius: 6px;
}

section {
  padding: 74px 0;
}

.band {
  background: var(--paper);
}

.dark {
  background: var(--black);
  color: var(--white);
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.center {
  text-align: center;
}

.section-title {
  margin: 48px 0 18px;
  font-family: var(--font-head);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--teal);
}

.lead {
  max-width: 880px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 18px;
}

.dark .lead {
  color: rgba(255,255,255,.72);
}

.eyebrow,
.section-kicker {
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── FEATURE CARDS ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature,
.card,
.post {
  background: var(--white);
  overflow: hidden;
}

.feature {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}

.feature-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.feature-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.feature p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.feature ul {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* ── APPLICATIONS (horizontal strip) ── */
.apps-strip {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  max-width: 100%;
}

.apps-strip::-webkit-scrollbar { display: none; }

.app-tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  flex: 1 1 0;
  min-width: 120px;
  height: 280px;
  transition: flex 0.4s ease;
}

.apps-strip:hover .app-tile { flex: 0.6 1 0; }
.apps-strip .app-tile:hover { flex: 2 1 0; }

.app-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.4s ease;
  filter: brightness(0.65);
}

.app-tile:hover img {
  filter: brightness(0.45);
}

.app-tile-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 18px;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 50%);
  pointer-events: none;
}

.app-tile-label h3 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  line-height: 1.3;
  transition: font-size 0.3s ease;
}

.app-tile:hover .app-tile-label h3 {
  font-size: 16px;
}

.card,
.post {
  border: 1px solid var(--line);
}

.card h3,
.post h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.card img,
.post img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body,
.post-body {
  padding: 22px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}

.split img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
}

/* ── FULL-WIDTH TEAL IMAGE STRIP ── */
.image-strip {
  width: 100%;
  height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.image-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 85, 120, 0.65);
}

/* ── SERVICES / SOLUTIONS TAB SECTION ── */
/* ── SERVICE CARDS (hover reveal) ── */
.ds-section { padding: 0 0 80px; }

.sc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.sc-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: #111;
}

.sc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: brightness(0.7);
}

.sc-card:hover img {
  transform: scale(1.07);
  filter: brightness(0.35);
}

.sc-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.sc-overlay h3 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  transition: transform 0.4s ease;
}

.sc-overlay p {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease 0.1s;
}

.sc-sub {
  color: var(--teal-light) !important;
  font-size: 11px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px !important;
  max-height: 0 !important;
  overflow: hidden;
  opacity: 0 !important;
  transition: max-height 0.4s ease, opacity 0.3s ease 0.05s !important;
}

.sc-card:hover .sc-overlay h3 { transform: translateY(-4px); }
.sc-card:hover .sc-sub { max-height: 40px !important; opacity: 1 !important; }
.sc-card:hover .sc-overlay p:last-child { max-height: 120px; opacity: 1; }

/* permanent bottom gradient so title is always readable */
.sc-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.sc-card:hover .sc-overlay::before { opacity: 0; }

/* tap indicator — always visible, fades on hover */
.sc-card::after {
  content: '+';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.6);
  color: var(--white);
  font-size: 20px;
  font-weight: 300;
  line-height: 30px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.sc-card:hover::after {
  background: var(--teal);
  border-color: var(--teal);
  opacity: 0.9;
}

/* ── SCROLL FADE-UP ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease var(--d, 0ms), transform 0.6s ease var(--d, 0ms);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── APPLICATIONS CTA ── */
.apps-cta {
  text-align: center;
  padding: 32px 0 0;
}

.apps-cta p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 18px;
}

/* crop USV lake photo to focus on the boat (lower-centre of portrait image) */
.app-tile:nth-child(3) img {
  object-position: center 65%;
}

/* ── SONAR ANIMATION SECTION ── */
.sonar-section {
  position: relative;
  width: 100%;
  background: #030b12;
  overflow: hidden;
  line-height: 0;
}

.sonar-canvas {
  display: block;
  width: 100%;
  height: 520px;
}

.sonar-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 40px;
  background: linear-gradient(to top, rgba(3,11,18,0.92) 0%, rgba(3,11,18,0) 100%);
  line-height: 1.4;
  pointer-events: none;
}

.sonar-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #00A2D2;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.sonar-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  margin: 0;
  max-width: 560px;
}

.sonar-depth-key {
  position: absolute;
  top: 24px;
  right: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.sdk-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

.sdk-bar {
  width: 14px;
  height: 80px;
  border-radius: 7px;
  background: linear-gradient(to bottom, #71C7E1, #003455);
  border: 1px solid rgba(255,255,255,0.15);
}

.sdk-range {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.sdk-range span {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

.sonar-legend {
  position: absolute;
  top: 22px;
  left: 32px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  pointer-events: none;
}

.sl-item {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(3,11,20,0.65);
}

.sl-usv   { color: #71C7E1; border-left: 3px solid #00A2D2; }
.sl-sludge{ color: #D4A96A; border-left: 3px solid #8B6914; }
.sl-drone { color: #88FF88; border-left: 3px solid #44CC44; }

@media (max-width: 600px) {
  .sonar-canvas { height: 300px; }
  .sonar-overlay { padding: 18px 20px; }
  .sonar-depth-key { display: none; }
  .sonar-desc { font-size: 12px; }
}

/* ── COUNCIL SPOTLIGHT ── */
.council-spot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 660px;
  overflow: hidden;
}

.council-spot-img {
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.council-spot-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,100,130,0.55) 0%, rgba(0,162,210,0.3) 100%);
}

.council-spot-body {
  background: var(--teal);
  padding: 32px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.council-spot-tag {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  margin: 0;
}

.council-spot-body h2 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  line-height: 1.2;
}

.council-spot-body > p {
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}

.council-spot-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.council-spot-points span {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 600;
}

.council-spot-body .button {
  align-self: flex-start;
  background: var(--white);
  color: var(--teal);
  border-color: var(--white);
  margin-top: 4px;
}

.council-spot-body .button:hover {
  background: transparent;
  color: var(--white);
}

@media (max-width: 768px) {
  .council-spot { grid-template-columns: 1fr; }
  .council-spot-img { min-height: 220px; }
  .council-spot-body { padding: 36px 24px; }
  .council-spot-body h2 { font-size: 24px; }
}

/* ── SERVICE MODAL ── */
.svc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.svc-modal.open {
  opacity: 1;
  pointer-events: all;
}

.svc-modal-box {
  background: var(--white);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s ease;
  border-radius: 4px;
  overflow: hidden;
}

.svc-modal.open .svc-modal-box {
  transform: translateY(0) scale(1);
}

.svc-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(0,0,0,0.55);
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.svc-modal-close:hover { background: var(--teal); }

.svc-modal-img {
  min-height: 300px;
}

.svc-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.svc-modal-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.svc-modal-num {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  color: var(--line);
  line-height: 1;
}

.svc-modal-body h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.svc-modal-sub {
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0;
}

.svc-modal-body p:last-of-type {
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
  margin: 0;
}

@media (max-width: 600px) {
  .svc-modal-box { grid-template-columns: 1fr; }
  .svc-modal-img { min-height: 220px; }
  .svc-modal-body { padding: 28px 22px; }
}

/* ── CLIENTS ── */
.logo-marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.logo-track {
  display: flex;
  gap: 48px;
  width: max-content;
  align-items: center;
  animation: scroll-logos 28s linear infinite;
}

.logo-track:hover {
  animation-play-state: paused;
}

.logo-track img {
  height: 100px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(0.1) opacity(0.85);
  transition: filter 0.3s ease;
  flex-shrink: 0;
}

.logo-track img:hover {
  filter: grayscale(0) opacity(1);
}

@keyframes scroll-logos {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

/* ── VIDEO SECTION ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.video-card {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  text-decoration: none;
}

.video-thumb {
  position: relative;
}

.video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.play {
  position: absolute;
  inset: auto auto 14px 14px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,.72);
  color: var(--white);
}

.video-card h3 {
  min-height: 72px;
  margin: 0;
  padding: 16px;
  font-size: 15px;
  color: rgba(255,255,255,.9);
}

/* ── CONTACT / FORMS ── */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.contact-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form {
  display: grid;
  gap: 14px;
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd6d8;
  padding: 10px 12px;
  font: inherit;
  background: var(--white);
}

input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin-right: 8px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.status {
  min-height: 22px;
  color: var(--teal-dark);
  font-weight: 700;
}

/* ── TEAM ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.team-member {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 20px;
  border: 1px solid var(--line);
  padding: 20px;
}

.team-member img {
  width: 155px;
  height: 155px;
  object-fit: cover;
  filter: none;
}

/* ── FOOTER ── */
.site-footer {
  padding: 42px 0;
  color: rgba(255,255,255,.78);
  background: var(--black);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
}

.footer-grid h3 {
  margin: 0 0 10px;
  color: var(--white);
}

.footer-grid a {
  display: block;
  margin: 6px 0;
  color: rgba(255,255,255,.7);
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: var(--teal);
}

.fineprint {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 13px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    flex-wrap: wrap;
    min-height: 88px;
    align-items: center;
  }

  .brand {
    min-height: 88px;
    min-width: 160px;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 16px;
    background: #404040;
    justify-content: flex-start;
  }

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

  .nav-link {
    width: 100%;
    padding: 12px 18px;
    border-bottom: none !important;
  }

  .dropdown {
    position: static;
    display: block;
    width: 100%;
    padding-left: 12px;
    box-shadow: none;
    background: rgba(255,255,255,.05);
  }

  .feature-grid,
  .card-grid,
  .video-grid,
  .split,
  .contact-panel,
  .footer-grid,
  .team-grid {
    grid-template-columns: 1fr !important;
  }

  .apps-strip { justify-content: flex-start; }
  .app-tile { flex: 0 0 45vw !important; min-width: 45vw; height: 220px; }
  .apps-strip:hover .app-tile, .apps-strip .app-tile:hover { flex: 0 0 45vw !important; }

  .sc-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sc-card { aspect-ratio: 3 / 2; }

  .team-member { grid-template-columns: 1fr; }

  .team-member img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }


  .hero {
    min-height: 100vh;
  }

  .page-banner {
    padding-top: 88px;
  }
}

@media (max-width: 560px) {
  section {
    padding: 54px 0;
  }

  .brand img {
    width: 120px;
  }

  .page-banner {
    padding: 52px 0 60px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ── KAYAK PRODUCT CARDS ── */
.kayak-list { display: flex; flex-direction: column; gap: 3rem; margin: 2.5rem 0; }
.kayak-card { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; padding: 2rem; background: var(--paper); border-radius: 8px; box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.kayak-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kayak-photos img { width: 100%; height: 220px; object-fit: cover; border-radius: 6px; }
.kayak-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 0.3rem; }
.kayak-title-row h3 { margin: 0; }
.kayak-badge { font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.kayak-badge--in { background: #d4f5e9; color: #0a7a4a; }
.kayak-badge--out { background: #fde8e8; color: #b91c1c; }
.kayak-price { font-size: 1.35rem; font-weight: 700; color: var(--teal); margin: 0.4rem 0 0.8rem; }
.kayak-body ul { padding-left: 1.2rem; margin: 0.6rem 0; }
.kayak-body li { margin-bottom: 0.3rem; }
@media (max-width: 768px) {
  .kayak-card { grid-template-columns: 1fr; }
  .kayak-photos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .kayak-photos { grid-template-columns: 1fr; }
  .kayak-photos img { height: 200px; }
}

/* ── SPEC TABLE ── */
.spec-table-wrap { overflow-x: auto; margin: 2rem 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table th, .spec-table td { padding: 10px 16px; border: 1px solid #dde; text-align: left; }
.spec-table thead th { background: var(--teal); color: #fff; font-weight: 700; }
.spec-table tbody tr:nth-child(even) { background: #f4f7fb; }
.spec-table td:first-child { font-weight: 600; white-space: nowrap; }

/* ── BLOG / ARTICLE ── */
.blog-post-page {
  background: #fff;
  padding: 64px 0 86px;
}

.article-shell {
  width: min(740px, calc(100% - 40px));
  margin: 0 auto;
  color: #333;
}

.article-back {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--teal);
  font-weight: 700;
}

.article-category {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
}

.article-shell h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.08;
}

.article-meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.article-meta span + span::before {
  content: "•";
  margin-right: 14px;
}

.article-image {
  width: 100%;
  object-fit: cover;
  margin: 0 0 34px;
}

.article-body {
  font-size: 18px;
  line-height: 1.75;
}

.article-body h3 {
  margin: 34px 0 12px;
  font-size: 23px;
  line-height: 1.25;
  color: var(--teal);
}

.article-body p {
  margin: 0 0 18px;
}

.article-body ul {
  margin: 0 0 20px;
  padding-left: 24px;
}

.article-body li {
  margin: 7px 0;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

.article-inline-image {
  margin: 30px auto 34px;
  text-align: center;
}

.article-inline-image img {
  display: inline-block;
  max-width: 100%;
  object-fit: cover;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 34px;
}

.article-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 640px) {
  .article-gallery {
    grid-template-columns: 1fr;
  }
}

/* ── CUSTOM BLOCKS ── */
.custom-block {
  margin: 24px auto;
}

.custom-text {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.8;
}

.custom-image {
  text-align: center;
}

.custom-image img {
  max-width: 100%;
  height: auto;
}

.custom-video iframe {
  display: block;
  width: min(760px, 100%);
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0 auto;
  border: 0;
}

/* ── ARTICLE COMPOSER ── */
.article-composer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(14, 24, 31, .62);
  padding: 28px;
  overflow: auto;
}

.article-composer.open {
  display: block;
}

.article-composer-card {
  width: min(1120px, 100%);
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}

.article-composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #dfe4e5;
}

.article-composer-head h2 {
  margin: 0;
  font-size: 24px;
}

.article-composer-head button {
  width: 38px;
  height: 38px;
  border: 1px solid #cfd7d9;
  background: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.article-composer-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
}

.article-compose-form label {
  display: block;
  margin: 0 0 14px;
  font-weight: 700;
}

.article-compose-form input,
.article-compose-form textarea {
  width: 100%;
  margin-top: 6px;
}

.article-compose-form textarea[data-compose="body"] {
  min-height: 260px;
}

.article-composer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.article-preview {
  min-height: 520px;
  padding: 0 8px 12px;
  color: #333;
}

.article-preview img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 8px 0 20px;
}

.article-preview h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}

.article-preview-excerpt {
  color: #53616b;
  font-size: 18px;
}

.article-preview div p {
  font-size: 18px;
  line-height: 1.75;
}

@media (max-width: 860px) {
  .article-composer {
    padding: 12px;
  }

  .article-composer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── EDITOR TOOLS ── */
.editor-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--teal);
  background: #222;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  cursor: pointer;
}

.editor-panel {
  position: fixed;
  top: 96px;
  right: 18px;
  z-index: 79;
  width: min(320px, calc(100vw - 36px));
  max-height: calc(100vh - 130px);
  overflow: auto;
  padding: 18px;
  border: 1px solid #dfe4e5;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.24);
}

.editor-panel h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.editor-panel p {
  margin: 0 0 12px;
  color: #5d6770;
  font-size: 13px;
}

.editor-panel label {
  margin: 10px 0;
}

.editor-panel select,
.editor-panel input {
  width: 100%;
  min-height: 38px;
}

.editor-panel textarea {
  width: 100%;
  min-height: 78px;
  resize: vertical;
}

.editor-panel button {
  width: 100%;
  min-height: 38px;
  margin: 6px 0;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.editor-panel hr {
  border: 0;
  border-top: 1px solid #dfe4e5;
  margin: 14px 0;
}

.editor-on [contenteditable="true"],
.editor-on img,
.editor-on .hero {
  outline: 1px dashed rgba(26,184,204,.55);
  outline-offset: 3px;
  cursor: text;
}

.editor-on img,
.editor-on .hero {
  cursor: pointer;
}

.editor-selected {
  outline: 3px solid var(--teal) !important;
  outline-offset: 4px !important;
}

@media (max-width: 760px) {
  .editor-panel {
    top: auto;
    right: 10px;
    left: 10px;
    bottom: 70px;
    width: auto;
    max-height: 50vh;
  }
}

.editor-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.free-positioned {
  touch-action: none;
  cursor: move !important;
  box-sizing: border-box;
}

.editor-on .free-positioned {
  outline: 2px solid rgba(26,184,204,.9) !important;
  outline-offset: 5px !important;
}

.layout-resize-handle {
  display: none;
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  background: var(--teal);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  cursor: nwse-resize;
  z-index: 30;
}

.editor-on .editor-selected .layout-resize-handle,
.editor-on .free-positioned:hover .layout-resize-handle {
  display: block;
}

body.preview-mobile #app,
body.preview-mobile .site-header,
body.preview-mobile .site-footer {
  width: 390px;
  max-width: 390px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 0 1px #d9e0e2;
}

body.preview-mobile {
  background: #e9eef0;
}

body.preview-mobile .editor-panel {
  right: 18px;
}
