/* Premier RV and Watercraft — homepage */

:root {
  --bg: #05070d;
  --bg-elevated: #0a0e18;
  --bg-card: #0c1220;
  --border: rgba(47, 107, 255, 0.28);
  --blue: #2f6bff;
  --blue-bright: #4d82ff;
  --blue-deep: #1a4fd6;
  --blue-glow: rgba(47, 107, 255, 0.35);
  --silver: #d6dde8;
  --silver-bright: #f2f5fa;
  --text: #e8edf5;
  --text-muted: #9aa6b8;
  --font-display: "Rajdhani", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --radius: 10px;
  --header-h: 76px;
  --container: min(1180px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--blue-bright);
  text-decoration: none;
}

a:hover {
  color: var(--silver-bright);
}

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.btn-primary {
  background: linear-gradient(180deg, var(--blue-bright) 0%, var(--blue) 55%, var(--blue-deep) 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(77, 130, 255, 0.25), 0 0 18px var(--blue-glow);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 0 0 1px rgba(77, 130, 255, 0.4), 0 0 26px rgba(47, 107, 255, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--silver-bright);
  border-color: rgba(232, 237, 245, 0.45);
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(232, 237, 245, 0.8);
  background: rgba(255, 255, 255, 0.04);
}

.btn-nav {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(5, 7, 13, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(47, 107, 255, 0.16);
}

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

.nav-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--silver);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--silver-bright);
}

.nav-chevron {
  opacity: 0.7;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--silver);
  border-radius: 1px;
}

/* Hero */

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2.5rem) 0 4.5rem;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.92) 0%, rgba(5, 7, 13, 0.72) 38%, rgba(5, 7, 13, 0.28) 62%, rgba(5, 7, 13, 0.45) 100%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.55) 0%, transparent 28%, transparent 58%, rgba(5, 7, 13, 0.95) 100%);
}

.hero-content {
  max-width: 640px;
  animation: hero-in 0.85s ease-out both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2.35rem, 5.2vw, 4.15rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #c8d2e0 42%, #8e9aab 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1.1rem;
  max-width: 14ch;
}

.hero-lede {
  color: var(--silver);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  font-weight: 400;
  line-height: 1.5;
  max-width: 34ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Service cards */

.service-cards {
  background: var(--bg);
  padding: 2.75rem 0 4rem;
  border-top: 1px solid rgba(47, 107, 255, 0.12);
}

.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 1.5rem 1.4rem 1.35rem;
  background: linear-gradient(165deg, #10182a 0%, #0a101c 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, transform 0.2s;
  animation: card-in 0.7s ease-out both;
}

.service-card:nth-child(2) {
  animation-delay: 0.08s;
}

.service-card:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card:hover {
  border-color: rgba(77, 130, 255, 0.55);
  transform: translateY(-2px);
}

.service-card-icon {
  color: var(--silver-bright);
  margin-bottom: 1.1rem;
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--silver-bright);
  margin-bottom: 0.65rem;
  line-height: 1.15;
}

.service-card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 34ch;
  padding-right: 2.5rem;
  flex: 1;
}

.service-card-arrow {
  position: absolute;
  right: 1.15rem;
  bottom: 1.15rem;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 14px var(--blue-glow);
  transition: background 0.2s, transform 0.2s;
}

.service-card-arrow:hover {
  background: var(--blue-bright);
  color: #fff;
  transform: translateX(2px);
}

/* About */

.about {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-inner {
  max-width: 640px;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.65rem;
}

.about h2,
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--silver-bright);
  margin-bottom: 0.85rem;
  line-height: 1.1;
}

.about p,
.section-header p {
  color: var(--text-muted);
  margin-bottom: 1.35rem;
  max-width: 48ch;
}

/* Contact */

.contact {
  padding: 3rem 0 4.5rem;
}

.section-header {
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 1.35rem;
}

.contact-block h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--silver-bright);
}

.contact-link:hover {
  color: var(--blue-bright);
}

.contact-text {
  color: var(--text-muted);
}

.contact-form {
  display: grid;
  gap: 0.95rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(47, 107, 255, 0.18);
  border-radius: 12px;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
}

.contact-form span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #070b14;
  color: var(--text);
  font: inherit;
}

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

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

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 0 2rem;
  background: #03050a;
}

.footer-inner {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
}

.footer-logo {
  height: 64px;
  width: auto;
}

.footer-nap,
.site-footer p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-nap a,
.footer-nav a {
  color: var(--silver);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.footer-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Responsive */

@media (max-width: 980px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(5, 7, 13, 0.98);
    border-bottom: 1px solid rgba(47, 107, 255, 0.2);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > li > a {
    padding: 0.85rem 0.25rem;
    min-height: 44px;
  }

  .nav-cta-item {
    padding-top: 0.5rem;
  }

  .nav-cta-item .btn {
    width: 100%;
  }

  .service-cards-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  :root {
    --header-h: 68px;
  }

  .nav-logo {
    height: 48px;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 1.25rem) 0 0;
    display: block;
  }

  .hero-media {
    position: relative;
    height: min(52vw, 280px);
    min-height: 220px;
  }

  .hero-image {
    object-position: 70% center;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(5, 7, 13, 0.35) 0%, rgba(5, 7, 13, 0.15) 40%, rgba(5, 7, 13, 0.92) 100%);
  }

  .hero > .container {
    margin-top: -2.5rem;
    padding-bottom: 2.5rem;
    position: relative;
  }

  .hero-content {
    max-width: none;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .hero-lede {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .service-card-text {
    padding-right: 3rem;
  }
}

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

  .hero-content,
  .service-card {
    animation: none;
  }
}
