/* Maritime Archaeology Ltd - Static Site Styles */

:root {
  --bg-primary: #0a1628;
  --bg-secondary: #0f1f38;
  --bg-card: #132a4a;
  --bg-card-hover: #1a3a5c;
  --accent: #00a5cf;
  --accent-light: #00d4ff;
  --accent-dark: #007a99;
  --text-primary: #e8edf2;
  --text-secondary: #a0b0c4;
  --text-muted: #8299b3;
  --border: #1e3554;
  --white: #ffffff;
  --danger: #e74c3c;
  --success: #2ecc71;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.4);
  --transition: 0.3s ease;
  --max-width: 1200px;
  --header-height: 72px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-light);
}

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
  border-radius: 2px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--white);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

/* Header */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 2000;
  padding: 0.65rem 1.1rem;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 44px;
  width: auto;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(540px, 76svh, 740px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 2.5rem) 1.5rem 5rem;
  overflow: hidden;
}

.hero.hero--home {
  min-height: 100vh;
  min-height: 100svh;
  justify-content: space-between;
  padding: calc(var(--header-height) + 3rem) 1.5rem 5rem;
}

.hero.hero--home .hero-content {
  margin: auto 0;
}

.hero.hero--subpage {
  min-height: clamp(340px, 44svh, 450px);
  padding: calc(var(--header-height) + 2rem) 1.5rem 4.25rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Scroll-down indicator */
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.hero-scroll:hover {
  opacity: 1;
}

.hero-scroll .scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--accent);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.hero-scroll .scroll-mouse::before {
  content: '';
  width: 3px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
  animation: scroll-bounce 1.8s ease-in-out infinite;
}

.hero-scroll .scroll-label {
  display: none;
}

@keyframes scroll-bounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.2;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--bg-primary);
}

/* Section */
.section {
  padding: 5rem 1.5rem;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header p {
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0.75rem auto 0;
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: all var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(0, 165, 207, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--accent);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.card h3 a {
  color: var(--white);
}

.card h3 a:hover {
  color: var(--accent-light);
}

.card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Image cards */
.image-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}

.image-card:hover {
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.image-card .card-image {
  overflow: hidden;
}

.image-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-card:hover img {
  transform: scale(1.06);
}

.image-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 165, 207, 0.12);
  margin: 1.5rem 1.5rem 0;
}

.image-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.image-card h3 {
  margin: 0.75rem 1.5rem 0;
}

.image-card p {
  padding: 0.5rem 1.5rem 1.5rem;
}

.image-card .card-body {
  padding: 1.5rem;
}

.image-card .card-body h3 {
  margin: 0.7rem 0 0.5rem;
}

.image-card .card-body p {
  padding: 0;
  font-size: 0.92rem;
}

.card-category {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 165, 207, 0.14);
  color: var(--accent-light);
}

/* Featured 3D viewer (used by 3d-services.html) */
.featured-3d-viewer {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 16/10;
}

/* Sketchfab embed wrapper */
.sketchfab-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(110deg, var(--bg-card) 30%, #17345b 50%, var(--bg-card) 70%);
  background-size: 200% 100%;
  animation: embed-shimmer 2.2s ease-in-out infinite;
}

.sketchfab-embed.is-loaded {
  background: var(--bg-card);
  animation: none;
}

@keyframes embed-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.sketchfab-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Team grid */
.team-card {
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  transition: all var(--transition);
}

.team-card:hover {
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}

.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 46%;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--border);
  transition: transform 0.4s ease, border-color var(--transition);
}

.team-card:hover img {
  transform: scale(1.05);
  border-color: var(--accent-dark);
}

.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.team-card .role {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: block;
}

.team-card p {
  font-size: 0.88rem;
}

/* Client logos */
.clients-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 0;
}

.clients-row img {
  height: 58px;
  width: auto;
  padding: 0.65rem 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0.85;
  filter: grayscale(100%) contrast(1.05);
  transition: all var(--transition);
}

.clients-row img:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: var(--danger);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 1.25rem;
}

.contact-info-card h4 {
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-card p {
  font-size: 0.95rem;
}

.contact-map {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 1.25rem;
}

.contact-map p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Footer */
.footer-brand p {
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.social-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  color: var(--white);
}

.social-links a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 0.82rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.breadcrumb li + li::before {
  content: '/';
  color: var(--text-muted);
  padding: 0 0.4rem;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb li[aria-current="page"] {
  color: var(--accent);
}

/* Filter buttons */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(0, 165, 207, 0.1);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
  font-weight: 600;
}

/* Model gallery grid */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.model-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}

.model-card:hover {
  border-color: var(--accent-dark);
  box-shadow: var(--shadow);
}

.model-card .sketchfab-embed {
  border-radius: 0;
}

.model-card-info {
  padding: 1rem 1.25rem;
}

.model-card-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.model-card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.sketchfab-profile-link {
  text-align: center;
  margin-top: 2.5rem;
}

.sketchfab-profile-link p {
  margin: 0;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 3rem 0;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-accent {
  background: rgba(0, 165, 207, 0.15);
  color: var(--accent);
}

/* Homepage: 3D showcase */
.hero-3d-showcase {
  background-color: var(--bg-secondary);
  background-image: url('../images/bathymetry-bg.svg');
  background-size: cover;
  background-position: center;
  padding: 4rem 1.5rem;
}

.hero-3d-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}

.hero-3d-text h2 {
  margin-bottom: 0.75rem;
}

.hero-3d-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.hero-3d-viewer {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d1f35;
  border: 1px solid var(--border);
}

.hero-3d-viewer canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Homepage: Stats row */
.stats-row .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  align-items: center;
  padding: 2.75rem 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.stat-number {
  display: block;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Homepage: About preview */
.about-preview {
  padding: 5rem 1.5rem;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content h2 {
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Homepage: Featured 3D models */
.featured-3d {
  display: block;
  padding: 5rem 1.5rem;
  text-align: center;
}

.featured-3d h2,
.services-preview h2,
.sectors-preview h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.featured-3d .section-intro,
.services-preview .section-intro,
.sectors-preview .section-intro {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

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

.sketchfab-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Homepage: Services preview */
.services-preview {
  padding: 5rem 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 165, 207, 0.12);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Homepage: Sectors preview */
.sectors-preview {
  padding: 5rem 1.5rem;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.sector-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.sector-item:hover {
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.sector-item h3 {
  font-size: 0.95rem;
  color: var(--white);
}

/* Responsive */
@media (max-width: 968px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

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

  .about-inner {
    grid-template-columns: 1fr;
  }

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

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

  .hero-3d-inner {
    grid-template-columns: 1fr;
  }

  .hero-3d-viewer {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .hero {
    min-height: clamp(460px, 72svh, 620px);
  }

  .hero.hero--home {
    min-height: 100svh;
    padding-bottom: 4.75rem;
  }

  .hero.hero--subpage {
    min-height: clamp(300px, 42svh, 400px);
  }

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

@media (max-width: 480px) {
  .section {
    padding: 3rem 1rem;
  }

  .btn {
    justify-content: center;
  }

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

  .services-grid,
  .sectors-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   ADDITIONAL CLASSES (used by generated HTML pages)
   ═══════════════════════════════════════════════════════════════════ */

/* Aliases for class name variations */
.site-header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-height); background: rgba(10, 22, 40, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); z-index: 1000; transition: background var(--transition); }
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 3rem 1.5rem 1.5rem; }
.site-footer address { font-style: normal; }
.site-footer address p { font-size: 0.85rem; }

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Main nav */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: var(--bg-card);
}

/* Nav button variant */
.btn-nav {
  background: var(--accent) !important;
  color: var(--bg-primary) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
}

.btn-nav:hover {
  background: var(--accent-light) !important;
  color: var(--bg-primary) !important;
}

/* Secondary button */
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero buttons */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero with background-image on section */
.hero[style*="background-image"] {
  background-size: cover;
  background-position: center;
}

.hero[style*="background-image"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.5) 0%, rgba(10, 22, 40, 0.85) 60%, rgba(10, 22, 40, 1) 100%);
  z-index: 0;
}

.hero[style*="background-image"] > * {
  position: relative;
  z-index: 1;
}

.hero[style*="background-image"] > .hero-scroll {
  position: absolute;
  z-index: 2;
}

/* Section intro text */
.section-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
  line-height: 1.8;
}

.section-intro-text,
.sectors-intro {
  padding: 3.5rem 1.5rem 1.25rem;
  text-align: center;
}

.section-intro-text p,
.sectors-intro p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.8;
}

.sectors-grid-section {
  padding: 2rem 1.5rem 5rem;
}

/* 3D services two-column showcase */
.featured-3d-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
}

.featured-3d-content h2 {
  text-align: left;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 968px) {
  .featured-3d-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* CTA section */
.cta-section {
  padding: 4rem 1.5rem;
  text-align: center;
  background-color: var(--bg-secondary);
  background-image: url('../images/bathymetry-bg.svg');
  background-size: cover;
  background-position: center;
}

.cta-section h2 {
  margin-bottom: 0.75rem;
}

.cta-section p {
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* Services section */
.services-section {
  padding: 5rem 1.5rem;
}

/* Footer columns */
.footer-col {
  min-width: 0;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  display: block;
}

.footer-ro-badge {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Footer grid with container */
.footer-grid.container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-bottom.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

/* Service detail card */
.service-detail-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: all var(--transition);
}

.service-detail-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.service-detail-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.service-detail-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Company name/subtitle in logo */
.company-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

.company-subtitle {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Header scroll effect */
header.scrolled {
  background: rgba(10, 22, 40, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive overrides for container-based footer */
@media (max-width: 968px) {
  .footer-grid.container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    z-index: 999;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  .main-nav a {
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .btn-nav {
    margin-left: 0 !important;
    text-align: center;
    margin-top: 0.5rem;
    display: block !important;
  }

  .footer-grid.container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom.container {
    flex-direction: column;
    text-align: center;
  }
}

/* Responsive hamburger for main-nav */
@media (min-width: 769px) {
  .main-nav {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: all !important;
    position: static !important;
    background: none !important;
    border: none !important;
    backdrop-filter: none !important;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Scroll reveal animations (class added by main.js) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Ken Burns hero background (real layer inserted by main.js) */
.hero.has-media > .hero-media {
  position: absolute;
  inset: -4%;
  z-index: 0;
  animation: hero-kenburns 14s ease-in-out infinite alternate;
}

.hero.has-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.5) 0%, rgba(10, 22, 40, 0.85) 60%, rgba(10, 22, 40, 1) 100%);
  z-index: 1;
}

.hero.has-media > * {
  position: relative;
  z-index: 2;
}

.hero.has-media > .hero-scroll,
.hero.has-media > .hero-media {
  position: absolute;
}

.hero.has-media > .hero-media {
  z-index: 0;
}

@keyframes hero-kenburns {
  from {
    transform: scale(1.05) translate3d(-1.5%, 1%, 0);
  }
  to {
    transform: scale(1.22) translate3d(1.5%, -1%, 0);
  }
}

/* Viewer sizing & placeholders */
.hero-3d-viewer,
.featured-3d-viewer {
  position: relative;
  width: 100%;
}

.featured-3d-viewer canvas,
.hero-3d-viewer canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.threejs-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

.threejs-placeholder p {
  color: var(--text-muted);
  margin: 0;
}

.threejs-placeholder .placeholder-sub {
  font-size: 0.85rem;
}

.viewer-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.section-actions {
  text-align: center;
  margin-top: 2rem;
}

/* Lists & editorial media */
.plain-list {
  list-style: none;
  padding: 0;
}

.feature-list {
  color: var(--text-secondary);
  padding-left: 1.25rem;
  margin-top: 1rem;
  text-align: left;
}

.feature-photo {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  width: 100%;
}

.clients-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* 404 page */
.error-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-code {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
  color: var(--accent);
}

.error-lead {
  max-width: 480px;
  margin: 0 auto 2rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contact form validation, status feedback, and email reveal */
.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.92rem;
  color: var(--text-primary);
  animation: status-pop 0.2s ease;
}

@keyframes status-pop {
  from {
    opacity: 0.5;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.form-status.is-error {
  border-color: var(--danger);
  background: rgba(231, 76, 60, 0.12);
}

.form-status.is-success {
  border-color: var(--success);
  background: rgba(46, 204, 113, 0.12);
}

.form-status .fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.email-reveal-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.revealed-email {
  font-weight: 600;
  color: var(--accent-light);
  word-break: break-word;
}

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

/* Interactive 3D viewer HUD */
.viewer-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
  z-index: 3;
}

.viewer-hint {
  padding: 0.35rem 0.7rem;
  background: rgba(10, 22, 40, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 165, 207, 0.25);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.viewer-controls {
  display: flex;
  gap: 0.4rem;
  pointer-events: auto;
}

.viewer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  background: rgba(10, 22, 40, 0.86);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 165, 207, 0.3);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.viewer-btn:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: rgba(19, 42, 74, 0.94);
}

.viewer-btn svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 560px) {
  .viewer-hint {
    display: none;
  }
  .viewer-hud {
    justify-content: flex-end;
  }
}

/* Homepage CIfA Registered Organisation credential & trust strip */
.hero-credential {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.95rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.72);
  border: 1px solid rgba(0, 165, 207, 0.45);
  backdrop-filter: blur(8px);
  color: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: border-color var(--transition), background var(--transition);
}

.hero-credential:hover {
  border-color: var(--accent-light);
  background: rgba(19, 42, 74, 0.85);
  color: var(--white);
}

.hero-credential svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-ro-badge {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.hero-trust-bar {
  width: 100%;
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: rgba(10, 22, 40, 0.76);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 165, 207, 0.25);
  border-radius: var(--radius-lg);
  text-align: left;
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0.5rem;
  border-left: 2px solid rgba(0, 165, 207, 0.35);
}

.hero-trust-item:first-child {
  border-left: none;
  padding-left: 0;
}

.hero-trust-item strong {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-trust-item span {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .hero-trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-trust-item:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 540px) {
  .hero-trust-bar {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .hero-trust-item {
    border-left: none;
    padding-left: 0;
  }
}

/* CIfA Registered Organisation spotlight & client roster */
.ro-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(19, 42, 74, 0.95), rgba(15, 31, 56, 0.95));
  border: 1px solid rgba(0, 165, 207, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.ro-badge-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  text-align: center;
}

.ro-badge-img {
  width: 136px;
  height: 136px;
  display: block;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

@media (max-width: 768px) {
  .ro-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.client-roster {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.client-chip {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.82rem;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.testimonial-quote {
  color: var(--text-primary);
  font-size: 0.98rem;
  line-height: 1.75;
  font-style: italic;
  margin: 0;
}

.testimonial-meta strong {
  display: block;
  color: var(--white);
  font-size: 0.92rem;
}

.testimonial-meta span {
  display: block;
  color: var(--accent);
  font-size: 0.8rem;
}

/* Case study pages & private client review pages */
.card-link-row {
  margin-top: 1rem;
}

.card-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-light);
}

.card-more-link:hover {
  color: var(--white);
}

.preview-banner {
  background: rgba(0, 165, 207, 0.14);
  border-bottom: 1px solid rgba(0, 165, 207, 0.4);
  padding: 0.85rem 1.5rem;
  margin-top: var(--header-height);
}

.preview-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.preview-banner + .hero {
  padding-top: 3rem;
}

.case-study-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.case-study-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.fact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

.fact-box span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.fact-box strong {
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 600;
}

.case-study-highlights {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}

.case-study-highlights h2 {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.case-study-highlights ul {
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.case-study-highlights li {
  margin-bottom: 0.45rem;
}

.case-study-prose p {
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.review-box {
  background: var(--bg-card);
  border: 1px solid rgba(0, 165, 207, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2.5rem;
}

.review-box select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
}

.legal-prose {
  max-width: 820px;
  margin: 0 auto;
}

.legal-prose h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.65rem;
}

.legal-prose ul {
  padding-left: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.legal-prose li {
  margin-bottom: 0.4rem;
}
