:root {
  --navy: #0a2540;
  --ocean: #0066cc;
  --white: #ffffff;
  --light: #f5f7fa;
  --ink: #09131f;
  --muted: #5a6775;
  --surface: #e9eef6;
  --line: #c8d2df;
  --focus: #15a6ff;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 20px 60px rgba(7, 20, 35, 0.2);
  --shadow-md: 0 10px 30px rgba(7, 20, 35, 0.14);
  --container: min(1160px, 92vw);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% -10%, rgba(0, 102, 204, 0.18), transparent 38%),
    radial-gradient(circle at 10% 20%, rgba(10, 37, 64, 0.09), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #f2f6fb 44%, #f8fbff 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 999;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.skip-link:focus-visible {
  left: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(245, 247, 250, 0.78);
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.brand-mark {
  width: 36px;
  aspect-ratio: 1;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(150deg, var(--ocean), #1f9cff);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.32);
}

.site-nav {
  display: flex;
  gap: 1.35rem;
}

.site-nav a {
  font-weight: 500;
  color: var(--navy);
}

.site-nav a:hover {
  color: var(--ocean);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  display: block;
  margin: 0.35rem auto;
}

.hero {
  padding-top: clamp(3.8rem, 7vw, 6.3rem);
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(0, 102, 204, 0.08), transparent 45%),
    linear-gradient(220deg, rgba(10, 37, 64, 0.07), transparent 58%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.8rem, 3vw, 3rem);
  align-items: center;
}

.eyebrow {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ocean);
  margin: 0;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  margin-top: 0.7rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  color: var(--navy);
}

.hero-subtitle {
  margin: 1rem 0 1.7rem;
  color: #263645;
  max-width: 58ch;
  font-size: clamp(1rem, 2.3vw, 1.15rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
.link-btn:focus-visible,
.filter-btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
.site-nav a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(140deg, var(--navy), #114273);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(10, 37, 64, 0.28);
}

.btn-secondary {
  border-color: rgba(10, 37, 64, 0.2);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.75);
}

.hero-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #dbe8f7;
}

.hero-media img {
  width: 100%;
  height: min(72vh, 620px);
  object-fit: cover;
}

.hero-media figcaption {
  padding: 0.95rem 1rem;
  font-size: 0.92rem;
  color: #36506b;
  background: rgba(255, 255, 255, 0.96);
}

.section-head {
  margin-bottom: 1.8rem;
}

.section-head h2 {
  margin-top: 0.55rem;
  font-size: clamp(1.8rem, 4.2vw, 2.7rem);
  font-family: "Sora", sans-serif;
  color: var(--navy);
}

.section-intro {
  margin: 0.8rem 0 0;
  color: var(--muted);
  max-width: 65ch;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(180deg, #f9fcff 0%, #f4f8fd 100%);
  border: 1px solid #d9e3f0;
  border-radius: var(--radius-md);
  padding: 1.3rem;
  box-shadow: 0 2px 10px rgba(7, 20, 35, 0.04);
  display: grid;
  align-content: start;
  gap: 0.85rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #9fc4ec;
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e0ecfb;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--ocean);
}

.card h3 {
  font-size: 1.15rem;
  font-family: "Sora", sans-serif;
  color: var(--navy);
}

.card p {
  margin: 0;
  color: #3c4a59;
}

.link-btn {
  margin-top: 0.3rem;
  color: var(--ocean);
  font-weight: 600;
  font-size: 0.95rem;
}

.link-btn:hover {
  text-decoration: underline;
}

.vessel-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.filter-btn {
  border: 1px solid #b8c9dc;
  background: #f5f9ff;
  color: var(--navy);
  border-radius: 999px;
  min-height: 40px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  font-weight: 600;
}

.filter-btn.is-active {
  background: linear-gradient(140deg, var(--ocean), #1591ff);
  border-color: transparent;
  color: var(--white);
}

.vessels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.vessel-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: clip;
  border: 1px solid #dde6f2;
  box-shadow: 0 5px 14px rgba(7, 20, 35, 0.08);
}

.vessel-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.vessel-content {
  padding: 1rem;
}

.vessel-content h3 {
  font-size: 1.12rem;
  color: var(--navy);
}

.vessel-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.7rem;
  font-size: 0.93rem;
  color: #39516a;
}

.vessel-badge {
  margin-top: 0.9rem;
  display: inline-flex;
  border-radius: 999px;
  background: #e5f2ff;
  color: #094987;
  padding: 0.25rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vessel-skeleton {
  border: 1px solid #dbe5f1;
}

.skeleton {
  background: linear-gradient(90deg, #ecf2f9 25%, #f6f9fd 37%, #ecf2f9 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.2s ease infinite;
  border-radius: 8px;
}

.skeleton-img {
  height: 220px;
}

.skeleton-title {
  height: 20px;
  width: 60%;
  margin-bottom: 10px;
}

.skeleton-text {
  height: 14px;
  width: 100%;
  margin-bottom: 8px;
}

.vessels-empty {
  grid-column: 1/-1;
  border: 1px dashed #b8cadd;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  color: #41596f;
  background: #f7fbff;
}

.ia-chat-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 95;
  border: 0;
  border-radius: 999px;
  background: #0f2233;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 16px;
  box-shadow: 0 12px 24px rgba(15, 34, 51, 0.35);
  cursor: pointer;
}

.ia-chat-toggle[disabled] {
  opacity: 0.62;
  cursor: not-allowed;
}

.ia-chat-panel {
  position: fixed;
  right: 20px;
  bottom: 78px;
  z-index: 95;
  width: min(360px, calc(100vw - 28px));
  background: #ffffff;
  border: 1px solid #d3dfe9;
  border-radius: 14px;
  box-shadow: 0 20px 35px rgba(9, 25, 40, 0.25);
  overflow: hidden;
  display: none;
}

.ia-chat-panel.is-open {
  display: block;
}

.ia-chat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  background: #0f2233;
  color: #ffffff;
}

.ia-chat-panel-head button {
  border: 0;
  background: #e8a020;
  color: #231e13;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  padding: 2px 9px;
  cursor: pointer;
}

.ia-chat-messages {
  max-height: 310px;
  overflow: auto;
  padding: 12px;
  background: #f6f9fc;
}

.ia-msg {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
}

.ia-msg-user {
  background: #e8a020;
  color: #211d14;
  margin-left: 38px;
}

.ia-msg-bot {
  background: #e5edf6;
  color: #122738;
  margin-right: 38px;
}

.ia-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e5ecf2;
}

.ia-chat-form input {
  margin: 0;
}

.ia-chat-form button {
  border: 0;
  border-radius: 8px;
  background: #0f2233;
  color: #ffffff;
  font-weight: 700;
  padding: 0 12px;
  cursor: pointer;
}

.ia-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.3rem;
  align-items: start;
}

.ia-subtitle {
  font-size: 1.18rem;
  color: #1a3d60;
}

.ia-panel {
  background:
    radial-gradient(circle at 10% 10%, rgba(21, 166, 255, 0.16), transparent 30%),
    linear-gradient(160deg, #06172a, #0c2f54 65%, #0e4578);
  border-radius: var(--radius-lg);
  color: #d7ecff;
  padding: 1.2rem;
  box-shadow: var(--shadow-lg);
}

.ia-chat-shell {
  background: rgba(5, 12, 20, 0.45);
  border: 1px solid rgba(147, 212, 255, 0.25);
  border-radius: 14px;
  padding: 0.9rem;
}

.ia-chat-head {
  font-family: "Sora", sans-serif;
  font-size: 0.93rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
}

.ia-chat-line {
  font-size: 0.94rem;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(196, 232, 255, 0.16);
  animation: pulse 4.6s ease-in-out infinite;
}

.ia-chat-line:nth-child(3) {
  animation-delay: 0.5s;
}

.ia-chat-line:nth-child(4) {
  animation-delay: 1s;
}

.ia-features {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.ia-features article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(170, 226, 255, 0.26);
  border-radius: 12px;
  padding: 0.8rem;
}

.ia-features h3 {
  font-size: 0.98rem;
}

.ia-features p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0;
}

.map-placeholder {
  margin-top: 1.2rem;
  min-height: 135px;
  display: grid;
  place-items: center;
  border: 1px dashed #90a9c3;
  border-radius: var(--radius-md);
  color: #42566d;
  background: #f3f8ff;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid #dbe4f1;
  padding: 1.2rem;
  box-shadow: var(--shadow-md);
}

.form-field {
  margin-bottom: 0.95rem;
}

label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--navy);
}

input,
textarea {
  width: 100%;
  border: 1px solid #b7c8da;
  border-radius: 10px;
  padding: 0.68rem 0.8rem;
  font: inherit;
  color: #0d2339;
  background: #fbfdff;
}

textarea {
  resize: vertical;
}

.error-message {
  display: block;
  min-height: 1.1em;
  color: #b00020;
}

.form-status {
  margin-top: 0.7rem;
  font-weight: 600;
}

.site-footer {
  background: #07192e;
  color: #d4e6f8;
  padding: 1.8rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.1rem;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
}

.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-links a,
.social-links a {
  color: #d4e6f8;
  opacity: 0.92;
}

.footer-links a:hover,
.social-links a:hover {
  color: #8fcaff;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.78;
  }
  50% {
    opacity: 1;
  }
}

@keyframes skeleton-loading {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vessels-grid,
  .ia-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .ia-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    right: 4vw;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #d1deec;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 0.9rem;
    display: none;
    min-width: 220px;
    flex-direction: column;
  }

  .site-nav.is-open {
    display: flex;
  }

  .services-grid,
  .vessels-grid,
  .ia-features,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    align-items: start;
  }

  .ia-chat-toggle {
    right: 12px;
    bottom: 12px;
  }

  .ia-chat-panel {
    right: 12px;
    bottom: 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
