@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --bg: #061320;
  --bg-deep: #071a2a;
  --bg-soft: #0d2436;
  --surface: #eef3f7;
  --surface-strong: #ffffff;
  --surface-line: rgba(17, 34, 50, 0.12);
  --text: #eff5fa;
  --text-dark: #102332;
  --muted: #9cb2c2;
  --muted-dark: #586c7c;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --accent: #d7a14b;
  --accent-strong: #efb75d;
  --accent-soft: rgba(215, 161, 75, 0.16);
  --success: #6fc5a1;
  --danger: #ff8d89;
  --shadow: 0 28px 64px rgba(2, 10, 18, 0.24);
  --shadow-soft: 0 16px 32px rgba(2, 10, 18, 0.14);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1180px;
  --header-height: 84px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215, 161, 75, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(80, 127, 160, 0.12), transparent 20%),
    linear-gradient(180deg, #07121e 0%, #091b2c 42%, #061320 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 85%);
}

body.menu-open {
  overflow: hidden;
}

body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(2, 7, 12, 0.72);
  z-index: 14;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(215, 161, 75, 0.32);
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 60;
  background: var(--surface);
  color: var(--text-dark);
  border-radius: 999px;
  padding: 0.75rem 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 19, 32, 0.84);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex: 0 0 auto;
}

.brand-badge {
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  border: 1px solid rgba(215, 161, 75, 0.3);
  background: linear-gradient(145deg, rgba(215, 161, 75, 0.22), rgba(12, 28, 43, 0.95));
  color: var(--accent-strong);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 0.16rem;
}

.brand-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.brand-copy span {
  font-size: 0.8rem;
  color: var(--muted);
}

.nav-toggle {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.nav-toggle svg {
  width: 1.4rem;
  height: 1.4rem;
}

.site-nav {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  width: min(22rem, 100%);
  padding: 1.15rem;
  background: linear-gradient(180deg, rgba(8, 23, 35, 0.98), rgba(7, 18, 30, 1));
  border-left: 1px solid var(--line);
  transform: translateX(102%);
  transition: transform 0.24s ease;
  overflow-y: auto;
  z-index: 30;
}

.site-nav.is-open {
  transform: translateX(0);
}

.nav-list,
.submenu-list,
.footer-links,
.contact-list,
.check-list,
.link-list,
.card ul,
.content-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list {
  display: grid;
  gap: 0.45rem;
}

.nav-item {
  display: grid;
  gap: 0.35rem;
}

.nav-link,
.submenu-toggle,
.submenu-list a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 3rem;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 0.85rem 1rem;
  color: var(--text);
}

.submenu-toggle {
  background: transparent;
}

.nav-link:hover,
.nav-link:focus-visible,
.submenu-toggle:hover,
.submenu-toggle:focus-visible,
.submenu-list a:hover,
.submenu-list a:focus-visible,
.nav-link[aria-current="page"] {
  border-color: rgba(215, 161, 75, 0.32);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link[aria-current="page"] {
  color: var(--accent-strong);
}

.submenu-toggle::after {
  content: "+";
  font-size: 1.1rem;
  color: var(--accent);
}

.submenu-toggle[aria-expanded="true"]::after {
  content: "-";
}

.submenu-list {
  display: none;
  gap: 0.35rem;
  padding-left: 0.8rem;
}

.submenu-toggle[aria-expanded="true"] + .submenu-list {
  display: grid;
}

.header-actions,
.desktop-only {
  display: none;
}


.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: currentColor;
}

.page-hero,
.thank-you-hero {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7.2rem) 0 3rem;
  overflow: hidden;
}

.page-hero::before,
.thank-you-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(215, 161, 75, 0.16), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 45%);
  pointer-events: none;
}

.hero-grid,
.quote-layout,
.proof-grid,
.hero-stat-grid,
.field-grid,
.grid,
.metrics-grid,
.footer-grid,
.contact-stack,
.timeline {
  display: grid;
  gap: 1rem;
}

.hero-copy {
  display: grid;
  gap: 1.25rem;
}

.hero-copy h1,
.thank-you-hero h1,
.section-heading h2,
.card h3,
.content-card h3,
.quote-card h2,
.cta-band strong {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero-copy h1,
.thank-you-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  max-width: 12ch;
}

.hero-copy p,
.section-copy,
.card p,
.content-card p,
.hero-stat span,
.proof-item span,
.metric span,
.faq-panel,
.quote-card p,
.footer-copy p,
.confirmation-note,
.form-note,
.contact-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy p {
  max-width: 44rem;
  font-size: 1.06rem;
}

.hero-actions,
.button-row,
.page-intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.25rem;
  border-radius: 999px;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button {
  background: var(--accent);
  color: #08131f;
  border-color: var(--accent);
}

.button:hover,
.button:focus-visible {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: rgba(215, 161, 75, 0.32);
  transform: translateY(-1px);
}

.button-ghost {
  background: transparent;
  border-color: rgba(215, 161, 75, 0.24);
  color: var(--accent-strong);
}

.button[disabled],
.button-secondary[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.button.is-loading::after {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}

.hero-panel,
.card,
.content-card,
.cta-band,
.quote-card,
.proof-item,
.contact-block,
.faq-item,
.timeline-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  padding: 1.35rem;
  display: grid;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(11, 31, 47, 0.98), rgba(7, 19, 31, 0.96));
}

.note-box {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(215, 161, 75, 0.28);
  background: linear-gradient(180deg, rgba(215, 161, 75, 0.12), rgba(215, 161, 75, 0.04));
  color: var(--surface);
  line-height: 1.7;
}

.hero-stat,
.proof-item,
.timeline-item {
  padding: 1rem 1.1rem;
}

.hero-stat strong,
.proof-item strong,
.metric strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
}

.page-intro-links {
  margin-top: 0.25rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(215, 161, 75, 0.22);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-strip {
  padding: 0 0 1rem;
}

.page-section {
  padding: 4.5rem 0;
}

.page-section.alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.9rem;
  max-width: 48rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.card,
.content-card,
.contact-block,
.quote-card {
  padding: 1.45rem;
}

.card h3,
.content-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.card ul,
.content-card ul,
.footer-links,
.contact-list,
.check-list,
.link-list {
  margin-top: 1rem;
}

.card li,
.content-card li,
.contact-list li,
.check-list li,
.link-list li {
  position: relative;
  padding-left: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
}

.card li + li,
.content-card li + li,
.contact-list li + li,
.check-list li + li,
.link-list li + li {
  margin-top: 0.55rem;
}

.card li::before,
.content-card li::before,
.contact-list li::before,
.check-list li::before,
.link-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
}

.metrics-grid {
  gap: 1.15rem;
}

.metric {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.cta-band {
  padding: 1.8rem;
  display: grid;
  gap: 1rem;
}

.cta-band strong {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.timeline-item span {
  display: inline-flex;
  margin-bottom: 0.5rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  overflow: hidden;
}

.faq-item.is-open {
  border-color: rgba(215, 161, 75, 0.28);
}

.faq-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 1.2rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}

.faq-trigger span:first-child {
  font-weight: 600;
}

.faq-trigger-icon {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: var(--accent-strong);
  transition: transform 0.2s ease;
  flex: 0 0 auto;
}

.faq-trigger[aria-expanded="true"] .faq-trigger-icon {
  transform: rotate(45deg);
}

.faq-panel {
  padding: 0 1.3rem 1.25rem;
}

.faq-panel[hidden] {
  display: none;
}

.quote-layout {
  gap: 1.3rem;
}

.quote-form {
  display: grid;
  gap: 1rem;
}

.field-grid {
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.9rem 1rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(3, 11, 20, 0.54);
  color: inherit;
  transition: border-color 0.18s ease;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239cb2c2' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(239, 245, 250, 0.58);
}

.field input:not(:focus):hover,
.field select:not(:focus):hover,
.field textarea:not(:focus):hover {
  border-color: rgba(255, 255, 255, 0.36);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.button:focus-visible,
.button-secondary:focus-visible,
.button-ghost:focus-visible,
.nav-toggle:focus-visible,
.nav-link:focus-visible,
.submenu-toggle:focus-visible,
.submenu-list a:focus-visible,
.faq-trigger:focus-visible,
.inline-link:focus-visible {
  outline: 2px solid rgba(215, 161, 75, 0.46);
  outline-offset: 2px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline-color: rgba(215, 161, 75, 0.65);
  border-color: rgba(215, 161, 75, 0.4);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: rgba(255, 141, 137, 0.72);
}

.field-error {
  min-height: 1.15rem;
  font-size: 0.88rem;
  color: var(--danger);
}

.form-note,
.confirmation-note {
  font-size: 0.95rem;
}

.form-status {
  min-height: 1.5rem;
  font-weight: 600;
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-success {
  color: var(--success);
}

.inline-link {
  color: var(--accent-strong);
}

.inline-link:hover {
  color: #f3c26f;
}

.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: rgba(4, 12, 19, 0.64);
}

.footer-grid {
  gap: 1.5rem;
}

.footer-links a:hover,
.link-list a:hover {
  color: var(--accent-strong);
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--muted);
}

.desktop-only {
  display: none;
}

@media (min-width: 720px) {
  .hero-grid,
  .quote-layout,
  .proof-grid,
  .field-grid,
  .metrics-grid,
  .footer-grid,
  .contact-stack,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 1024px) {
  body.menu-open::before {
    display: none;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    width: auto;
    padding: 0;
    transform: none;
    overflow: visible;
    background: transparent;
    border-left: 0;
  }

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

  .nav-item {
    position: relative;
    display: block;
  }

  .nav-link,
  .submenu-toggle {
    width: auto;
    min-height: 2.9rem;
  }

  .submenu-toggle {
    padding-right: 0.9rem;
  }

  .submenu-list {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    min-width: 17rem;
    padding: 0.6rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(8, 23, 35, 0.98);
    box-shadow: var(--shadow);
    display: grid;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .submenu-toggle[aria-expanded="false"] + .submenu-list,
  .submenu-toggle[aria-expanded="true"] + .submenu-list {
    display: grid;
  }

  .nav-item:hover .submenu-list,
  .nav-item:focus-within .submenu-list {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header-actions,
  .desktop-only {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
    align-items: end;
    gap: 1.5rem;
  }

  .proof-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .quote-layout {
    grid-template-columns: minmax(290px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
  }

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

  .footer-grid {
    grid-template-columns: 1.35fr 0.95fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Hero with real image (homepage) ===== */
.page-hero--img {
  background-repeat: no-repeat;
  background-size: cover;
  /* Anchor the right edge — keeps empty sky behind the text column,
     vessel visible as atmospheric depth on the right/centre */
  background-position: right center;
}

.page-hero--img::before {
  /* Left column stays readable; right side opens up so the vessel image
     reads as genuine atmosphere rather than a blocked-out background */
  background:
    linear-gradient(
      to right,
      rgba(6, 19, 32, 0.93) 0%,
      rgba(6, 19, 32, 0.80) 38%,
      rgba(6, 19, 32, 0.44) 62%,
      rgba(6, 19, 32, 0.12) 100%
    ),
    radial-gradient(circle at 82% 18%, rgba(215, 161, 75, 0.06), transparent 18%);
  z-index: 0;
}

/* Elevate hero content above the ::before overlay */
.page-hero--img > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 1023px) {
  .page-hero--img::before {
    background: rgba(6, 19, 32, 0.72);
  }
}

/* Hero panel sits on top of the background image — keep it translucent
   so the vessel image reads as texture behind the stat cards */
.page-hero--img .hero-panel {
  background: linear-gradient(180deg, rgba(11, 31, 47, 0.78), rgba(7, 19, 31, 0.76));
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===== Contact page: form promoted into hero ===== */
.hero-form-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 720px) {
  .hero-form-grid {
    grid-template-columns: 1fr 1.25fr;
  }
}

/* ===== Service page: closing CTA block (replaces end-of-page forms) ===== */
.service-cta-block {
  padding: 2rem 1.8rem;
}

/* ===== Service image band ===== */
.page-img-band {
  position: relative;
  overflow: hidden;
  height: clamp(14rem, 36vw, 26rem);
  border-top: 1px solid var(--line);
}

.page-img-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
