/* Monster Water Sports — production UI, responsive header, PWA and accessibility overrides. */
:root {
  --primary: #0077be;
  --accent: #ff9900;
  --dark: #1a1a1a;
  --light: #f4f8fb;
  --white: #ffffff;
}

html { overflow-x: hidden; }
body { overflow-x: hidden; }

/* =========================
   Professional site header
   ========================= */
header {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid #e7edf1;
  box-shadow: 0 4px 18px rgba(16, 38, 52, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .navbar {
  width: min(1240px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 28px;
}

header .logo-link {
  grid-column: 1;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  width: 154px;
  height: 72px;
  min-width: 154px;
  margin: 0;
  padding: 0;
  gap: 0 !important;
  line-height: 0;
}

header .logo-link img.logo,
header .logo-link img {
  display: block !important;
  width: 150px !important;
  max-width: 150px !important;
  height: auto !important;
  max-height: 73px !important;
  object-fit: contain;
  object-position: left center;
  flex: none;
}

header .logo-link .brand-text,
header .logo-link span {
  display: none !important;
}

header .main-nav {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0;
}

header .main-nav ul.nav-links {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(14px, 1.8vw, 24px) !important;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

header .nav-links li {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0;
}

header .nav-links li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.94rem;
  line-height: 1;
  min-height: 40px;
  padding: 8px 2px;
  font-weight: 650;
  color: #17222b;
  transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

header .nav-links li a:hover,
header .nav-links li a:focus-visible {
  color: var(--primary);
}

header .nav-links li a[aria-current="page"]:not(.nav-cta) {
  color: var(--accent);
}

header .nav-links .nav-cta {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(255, 153, 0, 0.24);
}

header .nav-links .nav-cta:hover,
header .nav-links .nav-cta:focus-visible {
  color: #fff !important;
  background: #ea8d00;
  transform: translateY(-1px);
}

header .nav-links li.nav-socials {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px !important;
  padding-left: 14px !important;
  margin-left: 2px !important;
  border-left: 1px solid #e2e9ee;
}

header .nav-socials a {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 50%;
  background: #f5f8fa;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1rem !important;
  line-height: 1 !important;
}

header .nav-socials a:nth-child(1) { color: #e1306c; }
header .nav-socials a:nth-child(2) { color: #1877f2; }
header .nav-socials a:nth-child(3) { color: #ff0000; }
header .nav-socials a:hover,
header .nav-socials a:focus-visible {
  background: #edf3f7;
  transform: translateY(-1px);
}

header .menu-btn {
  grid-column: 3;
  grid-row: 1;
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #dfe7ec;
  border-radius: 12px;
  background: #fff;
  color: #20303a;
  padding: 0;
  line-height: 1;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(16, 38, 52, 0.06);
}

header .menu-btn:hover,
header .menu-btn:focus-visible {
  border-color: #cbd8e0;
  background: #f7fafc;
}

header a:focus-visible,
header button:focus-visible {
  outline: 3px solid rgba(0, 119, 190, 0.25);
  outline-offset: 3px;
}

/* =========================
   Homepage hero balance
   ========================= */
.home-page .hero {
  height: clamp(500px, 68vh, 700px);
  min-height: 500px;
}

.home-page .hero-content {
  width: min(960px, calc(100% - 40px));
}

.home-page .hero-content h1 {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   Content helpers
   ========================= */
.breadcrumb { max-width: 1200px; margin: 0 auto; padding: 10px 20px; font-size: .9rem; line-height: 1.5; color: #53616d; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-current="page"] { font-weight: 600; color: #23313b; }
.quick-answer { max-width: 1100px; margin: 28px auto; padding: 20px 22px; border: 1px solid #dbe7ee; border-radius: 16px; background: #f7fbfd; color: #20303a; }
.quick-answer h2 { font-size: 1.2rem; margin: 0 0 8px; color: #0077be; }
.quick-answer p { margin: 0; line-height: 1.75; }
.related-links { max-width: 1100px; margin: 45px auto; padding: 0 20px; }
.related-links h2 { font-size: 1.6rem; margin-bottom: 18px; }
.related-links-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.related-link { display: inline-flex; align-items: center; padding: 10px 14px; border: 1px solid #dbe7ee; border-radius: 999px; text-decoration: none; color: #0077be; background: #fff; }
.related-link:hover { background: #f4f8fb; }
.review-link-card { max-width: 900px; margin: 30px auto; padding: 20px; border: 1px solid #e5e7eb; border-radius: 16px; text-align: center; background: #fff; }
.review-link-card a { display: inline-block; margin-top: 10px; padding: 10px 16px; border-radius: 999px; background: #0077be; color: #fff; text-decoration: none; }
.media-note { font-size: .9rem; color: #58636c; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 10000; padding: 10px 14px; background: #fff; border: 2px solid #0077be; border-radius: 8px; }

/* Sharva's IT footer credit — compact, aligned in the lower-right area. */
.footer-credit-row { border-top: 1px solid #333; margin-top: 20px; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.footer-copyright { color: #888; font-size: .85rem; text-align: left; }
.sharva-credit { margin: 0; padding: 0; color: #888; font-size: .8rem; line-height: 1.2; display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.sharva-credit a { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; line-height: 0; }
img.sharva-credit-logo { display: inline-block !important; width: 88px !important; height: auto !important; max-width: 88px !important; max-height: 18px !important; min-width: 0 !important; object-fit: contain; vertical-align: middle; }

/* =========================
   Tablet / mobile navigation
   ========================= */
@media (max-width: 1120px) {
  header .navbar {
    width: min(100%, calc(100% - 28px));
    column-gap: 20px;
  }
  header .logo-link { width: 145px; min-width: 145px; }
  header .logo-link img.logo,
  header .logo-link img { width: 140px !important; max-width: 140px !important; max-height: 68px !important; }
  header .main-nav ul.nav-links { gap: 11px !important; }
  header .nav-links li a { font-size: .9rem; }
  header .nav-links .nav-cta { padding: 0 14px; }
}

@media (max-width: 920px) {
  header .navbar { min-height: 72px; grid-template-columns: auto 1fr auto; }
  header .main-nav {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end !important;
    position: static;
  }
  header .nav-links {
    display: none !important;
    position: absolute;
    top: calc(100% + 8px);
    right: 14px;
    left: auto;
    width: min(340px, calc(100vw - 28px));
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2px !important;
    padding: 12px !important;
    background: #fff;
    border: 1px solid #e3ebf0;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(16, 38, 52, 0.16);
  }
  header .nav-links.active { display: flex !important; }
  header .nav-links li { width: 100%; }
  header .nav-links li a { width: 100%; justify-content: flex-start; padding: 11px 12px; border-radius: 10px; font-size: 1rem; }
  header .nav-links li a:hover,
  header .nav-links li a:focus-visible { background: #f4f8fb; }
  header .nav-links li .nav-cta { justify-content: center; width: 100%; margin-top: 6px; }
  header .nav-links li.nav-socials {
    width: 100%;
    justify-content: center;
    padding: 12px 0 4px !important;
    margin: 8px 0 0 !important;
    border-top: 1px solid #e9eef2;
    border-left: 0;
    gap: 14px !important;
  }
  header .nav-socials a { width: 42px !important; height: 42px !important; min-width: 42px !important; min-height: 42px !important; }
  header .menu-btn { display: inline-flex !important; grid-row: 1; }
  .home-page .hero { height: 64svh; min-height: 460px; }
}

@media (max-width: 520px) {
  header .navbar { width: calc(100% - 20px); min-height: 68px; }
  header .logo-link { width: 128px; min-width: 128px; height: 62px; }
  header .logo-link img.logo,
  header .logo-link img { width: 124px !important; max-width: 124px !important; max-height: 60px !important; }
  header .nav-links { right: 10px; width: calc(100vw - 20px); }
  .home-page .hero { height: 62svh; min-height: 430px; }
  .home-page .hero-content { width: min(100%, calc(100% - 24px)); padding: 12px; }
  .home-page .hero-content h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .home-page .hero-content p { font-size: 1rem; }
  .footer-credit-row { flex-direction: column; justify-content: center; gap: 8px; text-align: center; }
  .footer-copyright { text-align: center; }
  .sharva-credit { justify-content: center; }
  img.sharva-credit-logo { width: 84px !important; max-width: 84px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .home-page .hero video { display: none !important; }
}

/* Mobile menu state hardening: closed until menu.js explicitly opens it. */
@media (max-width: 920px) {
  header .nav-links[hidden],
  header .nav-links:not(.is-open) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  header .nav-links.is-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.menu-open {
    overflow: hidden;
  }
}
