:root {
  --bg: #06101b;
  --panel: rgba(4, 13, 24, 0.52);
  --text: #f7fbff;
  --muted: #d8e1e8;
  --line: rgba(230, 240, 248, 0.42);
  --line-soft: rgba(230, 240, 248, 0.22);
  --yellow: #ffd219;
  --yellow-soft: #ffe277;
  --green: #11b83f;
  --max: 1510px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color-scheme: dark;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    "Arial Narrow", "Roboto Condensed", "Segoe UI Condensed", Impact, system-ui, sans-serif;
  line-height: 1.4;
}

body::selection {
  color: #07101a;
  background: var(--yellow);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 10;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: #07101a;
  background: var(--yellow);
  border-radius: 3px;
  font: 900 0.9rem/1 system-ui, sans-serif;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.splash {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding: 42px clamp(28px, 3vw, 58px) 0;
}

.splash-media,
.splash-shade {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.splash-media {
  background: url("assets/er-yacht-engine-room-hero.png") center / cover no-repeat;
}

.splash-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 8, 16, 0.96) 0%, rgba(3, 12, 23, 0.82) 27%, rgba(3, 12, 23, 0.34) 58%, rgba(3, 10, 18, 0.12) 100%),
    linear-gradient(180deg, rgba(2, 7, 13, 0.44) 0%, rgba(2, 7, 13, 0.03) 56%, rgba(3, 11, 18, 0.92) 100%);
}

.splash::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: 132px;
  background:
    radial-gradient(circle at 45% 20%, rgba(63, 160, 190, 0.36), transparent 34%),
    linear-gradient(180deg, rgba(2, 12, 20, 0.18), rgba(7, 47, 66, 0.74)),
    linear-gradient(90deg, rgba(12, 96, 118, 0.22), rgba(0, 0, 0, 0.5));
  border-top: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 28px 60px rgba(2, 10, 17, 0.62);
}

.site-header {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 2vw, 34px);
}

.brand {
  display: inline-flex;
  width: 188px;
  text-decoration: none;
}

.brand-plate {
  display: block;
  width: 100%;
  height: 118px;
}

.brand-plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.3));
}

.top-actions {
  display: flex;
  align-items: center;
}

.top-actions a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 850;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.top-actions a:hover,
.top-actions a:focus-visible {
  color: var(--yellow);
}

.top-actions {
  justify-self: end;
  justify-content: flex-end;
  padding-top: 18px;
  gap: 13px;
}

.top-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
  font-size: clamp(0.82rem, 0.92vw, 1rem);
  text-transform: none;
}

.top-actions a:last-child {
  padding-right: 0;
  border-right: 0;
}

.top-actions a span {
  line-height: 1.15;
}

.contact-icon,
.button-icon,
.service-icon {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon {
  width: 30px;
  height: 30px;
  color: var(--text);
}

.map-pin {
  width: 34px;
  height: 34px;
}

.hero-panel {
  width: min(var(--max), 100%);
  margin: 60px auto 0;
}

h1,
p {
  margin-top: 0;
}

h1 {
  max-width: 1120px;
  margin: 0 0 26px;
  font-weight: 1000;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 span,
h1 strong {
  display: block;
}

h1 span {
  color: #ffffff;
  font-size: clamp(3.6rem, 4.92vw, 5.45rem);
}

h1 strong {
  color: var(--yellow);
  font-size: clamp(4.1rem, 5.45vw, 6.1rem);
}

.headline-rule {
  display: block;
  width: 140px;
  height: 5px;
  margin-bottom: 26px;
  background: var(--yellow);
}

.hero-copy {
  max-width: 520px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.92);
  font: 400 clamp(1.06rem, 1.55vw, 1.42rem)/1.45 "Segoe UI", system-ui, sans-serif;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.button {
  min-width: 175px;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px;
  border: 2px solid var(--yellow);
  border-radius: 7px;
  color: var(--text);
  background: rgba(2, 12, 22, 0.44);
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  color: var(--yellow);
}

.button-icon {
  width: 30px;
  height: 30px;
  color: var(--yellow);
}

.button-whatsapp {
  border-color: rgba(255, 255, 255, 0.24);
  background: var(--green);
}

.button-whatsapp .button-icon {
  color: #ffffff;
}

.button-whatsapp:hover,
.button-whatsapp:focus-visible {
  color: #ffffff;
  background: #17cc4c;
}

.service-dock {
  width: min(705px, 100%);
  margin: 36px auto 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-dock div {
  min-height: 104px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 0 22px;
  color: var(--text);
  text-align: center;
  border-right: 1px solid var(--line);
}

.service-dock div:last-child {
  border-right: 0;
}

.service-icon {
  width: 38px;
  height: 38px;
  color: var(--yellow);
  fill: none;
}

.service-dock strong,
.service-dock span:not(.service-icon) {
  font-size: 0.98rem;
  line-height: 1.12;
  text-transform: uppercase;
}

.service-dock strong {
  font-weight: 850;
}

.service-dock span:not(.service-icon) {
  color: rgba(255, 255, 255, 0.9);
}

.deck-edge {
  position: relative;
  width: 100vw;
  height: 44px;
  margin: 28px 0 0 calc(50% - 50vw);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
}

.deck-edge span {
  position: absolute;
  left: 50%;
  top: -1px;
  width: 120px;
  height: 26px;
  transform: translateX(-50%);
  border-right: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(3, 15, 24, 0.8);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%);
}

.deck-edge span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%) rotate(45deg);
  border-right: 4px solid #fff;
  border-bottom: 4px solid #fff;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin: 10px auto 0;
  display: flex;
  justify-content: center;
  gap: 34px;
  color: rgba(255, 255, 255, 0.52);
  font: 800 0.88rem/1.2 "Segoe UI", system-ui, sans-serif;
  text-transform: uppercase;
}

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

@media (max-width: 1540px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .top-actions {
    justify-self: end;
  }
}

@media (max-width: 760px) {
  .splash {
    min-height: 100svh;
    overflow: auto;
    padding: 14px 14px 0;
  }

  .splash-media {
    background-position: 66% center;
  }

  .splash-shade {
    background:
      linear-gradient(90deg, rgba(2, 8, 16, 0.95), rgba(3, 12, 23, 0.76)),
      linear-gradient(180deg, rgba(2, 7, 13, 0.28), rgba(2, 7, 13, 0.12) 52%, rgba(3, 11, 18, 0.94));
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand {
    width: 98px;
  }

  .brand-plate {
    height: 62px;
  }

  .top-actions {
    width: 100%;
    justify-content: stretch;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 0;
    gap: 0;
    border: 1px solid var(--line-soft);
    background: rgba(2, 10, 18, 0.58);
  }

  .top-actions a {
    justify-content: center;
    min-height: 46px;
    padding: 0 8px;
    gap: 7px;
    border-right: 1px solid var(--line-soft);
    font-size: 0.76rem;
  }

  .top-actions a:last-child {
    font-size: 0;
  }

  .top-actions a:last-child::after {
    content: "Map";
    font-size: 0.76rem;
  }

  .contact-icon {
    width: 18px;
    height: 18px;
    stroke-width: 3.4;
  }

  .hero-panel {
    margin-top: 34px;
  }

  h1 {
    max-width: 345px;
    margin-bottom: 18px;
  }

  h1 span {
    font-size: clamp(2.55rem, 11.8vw, 4.1rem);
  }

  h1 strong {
    font-size: clamp(2.9rem, 12.4vw, 4.3rem);
  }

  .headline-rule {
    width: 112px;
    height: 4px;
    margin-bottom: 20px;
  }

  .hero-copy {
    max-width: 345px;
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.48;
  }

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

  .button {
    min-width: 0;
    min-height: 50px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .button:first-child {
    grid-column: 1 / -1;
  }

  .button-icon {
    width: 20px;
    height: 20px;
  }

  .service-dock {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 26px;
    border-top: 1px solid var(--line-soft);
    border-left: 1px solid var(--line-soft);
    background: rgba(1, 9, 17, 0.5);
  }

  .service-dock div {
    min-height: 78px;
    padding: 12px 8px;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
  }

  .service-icon {
    width: 28px;
    height: 28px;
    stroke-width: 3.4;
  }

  .service-dock strong,
  .service-dock span:not(.service-icon) {
    font-size: 0.68rem;
  }

  .service-dock span:not(.service-icon) {
    display: none;
  }

  .deck-edge {
    margin-top: 18px;
  }

  .site-footer {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-bottom: 18px;
    font-size: 0.7rem;
  }
}
