:root {
  --bg: #06070d;
  --panel: #10131b;
  --text: #edf0f8;
  --muted: #aab2c1;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #ff4d2d;
  --accent-soft: #ff9a86;
  --max-width: 1120px;
  --glass-border: rgba(255, 255, 255, 0.4);
  --font-primary: "Oxanium", system-ui, sans-serif;
  --font-secondary: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-secondary);
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 3rem, var(--max-width));
  margin-inline: auto;
}

.page-header {
  position: relative;
  isolation: isolate;
  padding-bottom: 4rem;
  min-height: min(88vh, 900px);
  background-color: #06070d;
  background-image:
    linear-gradient(
      180deg,
      rgba(6, 7, 13, 0.76) 0%,
      rgba(6, 7, 13, 0.4) 52%,
      rgba(6, 7, 13, 0.58) 100%
    ),
    url("assets/blue-r8.png");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.nav {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  text-decoration: none;
  font-family: var(--font-primary);
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-transform: uppercase;
}

.back-link {
  text-decoration: none;
  font-family: var(--font-primary);
  letter-spacing: 0.03em;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  color: #f6f8ff;
  background: linear-gradient(
    165deg,
    rgba(24, 28, 38, 0.72),
    rgba(18, 22, 32, 0.62) 52%,
    rgba(12, 16, 25, 0.56)
  );
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 10px 26px rgba(0, 0, 0, 0.36);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  transition: 0.2s ease;
}

.back-link:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: linear-gradient(
    165deg,
    rgba(31, 37, 50, 0.8),
    rgba(22, 27, 38, 0.7) 52%,
    rgba(15, 20, 30, 0.64)
  );
}

.hero {
  max-width: 730px;
  padding-top: 2.5rem;
}

.label {
  font-family: var(--font-primary);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-soft);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  font-family: var(--font-primary);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  letter-spacing: 0.03em;
  font-weight: 700;
  text-transform: uppercase;
}

h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h3 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero .hero-intro {
  margin-top: 1rem;
  color: #f2f4fb;
  max-width: 58ch;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.hero-actions {
  margin: 1.5rem 0 0;
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.55rem 1.35rem;
  color: #fff;
  background: linear-gradient(165deg, #ff5a3c, #e63d22);
  box-shadow: 0 10px 28px rgba(255, 77, 45, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: 0.2s ease;
}

.instagram-btn:hover {
  filter: brightness(1.06);
}

.section {
  padding: 5rem 0;
}

.showcase-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.showcase-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}

.showcase-card h3,
.showcase-card p {
  padding-inline: 1rem;
}

.showcase-card h3 {
  margin-top: 1rem;
}

.showcase-card p {
  color: var(--muted);
  margin-top: 0.5rem;
  padding-bottom: 1rem;
}

.visual {
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.visual-one {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent), url("assets/rwb-s1k.png");
}

.visual-two {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent), url("assets/livery-nsx.png");
}

.visual-three {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent), url("assets/black-fpace.png");
}

.services {
  position: relative;
  overflow: visible;
  background-color: #06070d;
  background-image:
    linear-gradient(
      180deg,
      rgba(4, 6, 12, 0.88) 0%,
      rgba(4, 6, 12, 0.72) 42%,
      rgba(4, 6, 12, 0.9) 100%
    ),
    url("assets/road-city.png");
  background-repeat: no-repeat;
  background-size: 100% 100%, cover;
  background-position: center, calc(55%) center;
}

.services .container {
  position: relative;
  z-index: 1;
}

.service-list {
  margin-top: 2rem;
  display: grid;
  gap: 0.85rem;
}

.service {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.service:focus-within {
  z-index: 2;
  border-color: rgba(255, 154, 134, 0.45);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

@media (hover: hover) and (pointer: fine) {
  .service:hover {
    z-index: 2;
    border-color: rgba(255, 154, 134, 0.45);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

.service:focus {
  outline: none;
}

.service:focus-visible {
  outline: 2px solid rgba(255, 154, 134, 0.85);
  outline-offset: 3px;
}

.service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.service-main {
  min-width: 0;
}

.service p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.service-price {
  flex-shrink: 0;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.65rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  font-weight: 800;
  font-size: 1.6rem;
  color: #ffffff;
  white-space: nowrap;
  user-select: none;
}

.service-hovercard {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.5rem);
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 14, 22, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  color: var(--text);
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 6px, 0);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.service-hovercard::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  margin-left: -6px;
  width: 12px;
  height: 12px;
  background: rgba(12, 14, 22, 0.96);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  transform: rotate(45deg);
}

.service-hovercard-lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #dce1ee;
}

.service-hovercard-list {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.service-hovercard-list li + li {
  margin-top: 0.25rem;
}

.service:focus-within .service-hovercard {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
}

@media (hover: hover) and (pointer: fine) {
  .service:hover .service-hovercard {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-hovercard,
  .service {
    transition: none;
  }
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.service-modal[hidden] {
  display: none !important;
}

.service-modal.is-open {
  display: grid;
}

.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.service-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #0e121c, #0a0d14);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
  outline: none;
}

.service-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 10, 16, 0.85);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.service-modal-close:hover,
.service-modal-close:focus-visible {
  outline: none;
  border-color: rgba(255, 154, 134, 0.75);
  background: rgba(255, 77, 45, 0.18);
}

.service-modal-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  background: #05060a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.service-modal-body {
  padding: 1.1rem 1.2rem 1.25rem;
}

.service-modal-body h3 {
  font-size: 1.35rem;
}

.service-modal-details {
  margin-top: 0.65rem;
}

.service-modal-details > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.service-modal-details > p + p {
  margin-top: 0.65rem;
}

.service-modal-details .service-details-heading {
  margin: 1rem 0 0.4rem;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.service-modal-details .service-details-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.service-modal-details .service-details-list li + li {
  margin-top: 0.35rem;
}

.service-modal-details .service-details-meta {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  color: #dce1ee;
}

.service-modal-details .service-details-meta strong {
  color: var(--text);
  font-weight: 600;
}

body.service-modal-open {
  overflow: hidden;
}

.addons {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.2rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 77, 45, 0.08), rgba(255, 77, 45, 0));
}

.addons h3 {
  margin-bottom: 0.55rem;
}

.addons ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.booking-section {
  border-top: 1px solid var(--line);
}

.booking-lead {
  max-width: 52ch;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.booking-lead a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.booking-form {
  max-width: 720px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.booking-field-wide {
  grid-column: 1 / -1;
}

.booking-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.booking-field .req {
  color: var(--accent-soft);
}

.booking-field input,
.booking-field select,
.booking-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(6, 7, 13, 0.55);
  color: var(--text);
  font: inherit;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
  outline: 2px solid rgba(255, 77, 45, 0.4);
  outline-offset: 1px;
}

#booking-date {
  color-scheme: dark;
}

#booking-date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 1;
  filter: brightness(0) invert(1);
}

.booking-message {
  min-height: 1.25em;
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.booking-message.is-success {
  color: #9dffb8;
}

.booking-message.is-error {
  color: #ffb4a8;
}

.booking-actions {
  margin-top: 1.25rem;
}

.booking-submit {
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  cursor: pointer;
  background: linear-gradient(165deg, #ff5a3c, #e63d22);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 77, 45, 0.25);
}

.booking-submit:hover {
  filter: brightness(1.05);
}

.booking-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #8f97a9;
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .booking-grid {
    grid-template-columns: 1fr;
  }

  .service-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-price {
    align-self: stretch;
    width: 100%;
    text-align: center;
    font-size: 1.35rem;
  }

  .container {
    width: min(100% - 1.6rem, var(--max-width));
  }

  .footer-inner {
    flex-direction: column;
  }
}
