/* =========================
   CONTACT PAGE
   ========================= */

/* ===== PAGE WIDTH LOCK ===== */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

img,
video,
iframe {
  max-width: 100%;
}

.page-contact {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.page-contact .nav-links a {
  color: #000 !important;
}

.page-contact .logo {
  filter: brightness(0) invert(0) !important;
}

.page-contact .navbar {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.page-contact .navbar.solid {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}

/* Make burger visible on white background */
@media (max-width: 950px) {
  .page-contact .menu-toggle span {
    background: #000 !important;
  }
}

/* Hard desktop safety */
@media (min-width: 951px) {
  .menu-toggle {
    display: none !important;
    pointer-events: none !important;
  }

  .mobile-menu {
    display: none !important;
  }
}

/* ===== PAGE WRAPPER ===== */
.contact-page {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px 1.25rem 4rem;
  overflow-x: hidden;
}

/* ===== HERO ===== */
.contact-hero {
  text-align: center;
  margin-bottom: 2.2rem;
}

.contact-hero h1 {
  font-family: "Permanent Marker", cursive;
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
}

.contact-hero p {
  line-height: 1.85;
  color: #222;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== GRID ===== */
.contact-grid {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 1.6rem;
  align-items: start;
}

/* ===== CARDS ===== */
.contact-card,
.contact-side-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: #f6f6f6;
  border-radius: 22px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contact-card h2,
.contact-side-card h2 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ===== FORM ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 2px solid rgba(0, 0, 0, 0.14);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  font-family: "Fira Mono", monospace;
  font-size: 0.95rem;
  outline: none;
  background: #fff;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(0, 0, 0, 0.45);
}

.special-tour-fields {
  display: grid;
  gap: 0.9rem;
}

/* ===== BUTTONS ===== */
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.6rem;
  border-radius: 999px;
  border: 2px solid #000;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  background: #111;
}

.contact-btn.ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
  box-shadow: none;
}

.contact-btn.ghost:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
}

/* ===== SIDE BUTTONS ===== */
.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 54px;
  padding: 0 1.4rem;
  margin-top: 0.7rem;
  border-radius: 999px;
  border: 2px solid #000;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-size: 1.15rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.contact-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  background: #111;
}

.contact-pill.outline {
  background: transparent;
  color: #000;
  box-shadow: none;
}

.contact-pill.outline:hover {
  background: #000;
  color: #fff;
}

.contact-pill-icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 auto;
}

/* ===== SIDE TEXT ===== */
.contact-side-card p {
  line-height: 1.8;
  color: #222;
  margin: 0 0 0.4rem;
}

.contact-side-card .small {
  font-size: 0.95rem;
  opacity: 0.9;
}

.contact-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 1.2rem 0 1.1rem;
}

.contact-side-card h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

/* ===== MAP LINK ===== */
.contact-map {
  display: inline-block;
  margin-top: 0.6rem;
  color: #000;
  font-weight: 800;
  text-decoration: none;
  opacity: 0.8;
}

.contact-map:hover {
  opacity: 1;
}

/* ===== NOTE ===== */
.contact-note {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* ===== BOTTOM CTA ===== */
.contact-bottom-cta {
  width: 100%;
  max-width: 100%;
  margin-top: 3.2rem;
}

.contact-bottom-cta-inner {
  background: #000;
  color: #fff;
  border-radius: 22px;
  padding: 2.4rem 1.6rem;
  text-align: center;
  overflow: hidden;
}

.contact-bottom-cta-inner h2 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.contact-bottom-cta-inner p {
  line-height: 1.8;
  opacity: 0.95;
  margin-bottom: 1.35rem;
}

.contact-bottom-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== SUCCESS MODAL ===== */
.success-modal[hidden] {
  display: none;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.45);
}

.success-modal-card {
  width: min(100%, 520px);
  background: #fff;
  border-radius: 22px;
  padding: 1.6rem 1.4rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.success-modal-card h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-size: 2rem;
  margin: 0 0 0.6rem;
}

.success-modal-card p {
  margin: 0 0 1.2rem;
  line-height: 1.7;
  color: #222;
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  width: 100%;
  max-width: 100%;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem 1.8rem;
  margin-top: 4rem;
  overflow: hidden;
}

.footer-legal {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  line-height: 1.6;
  text-decoration: none;
  border-bottom: none;
  outline: none;
}

.footer-legal span,
.footer-legal a,
.footer-link {
  text-decoration: none;
  border-bottom: none;
  outline: none;
}

.footer-link {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.footer-link:hover {
  text-decoration: underline;
}

/* ===== FOOTER PARTNERS ===== */
.footer-partners {
  width: 100%;
  max-width: 100%;
  text-align: center;
  margin-bottom: 1.2rem;
  overflow: visible;
}

.footer-partners-title {
  font-size: 0.85rem;
  letter-spacing: 1px;
  opacity: 0.7;
  margin: 0 0 0.75rem 0;
}

.footer-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  column-gap: 2rem;
  overflow: visible;
}

.footer-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: visible;
}

.footer-logos img {
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.9;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  display: block;
}

.footer-logos img[alt="ION"] {
  height: 155px;
}

.footer-logos img[alt="SolarGuard"] {
  height: 72px;
}

.footer-logos img[alt="ROC Bike Customs"] {
  height: 38px;
}

.footer-logos img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* =========================
   MOBILE
   ========================= */

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

  .contact-side {
    order: -1;
  }
}

@media (max-width: 700px) {
  html,
  body,
  .page-contact,
  main,
  section,
  form,
  .contact-page,
  .contact-hero,
  .contact-grid,
  .contact-card,
  .contact-side,
  .contact-side-card,
  .contact-bottom-cta,
  .contact-bottom-cta-inner,
  .site-footer {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    touch-action: pan-y;
  }

  .contact-page {
    padding: 120px 1rem 3.5rem;
  }

  .contact-hero h1 {
    font-size: 2.35rem;
    line-height: 1.15;
  }

  .contact-hero p,
  .contact-side-card p,
  .contact-bottom-cta-inner p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .contact-card,
  .contact-side-card {
    padding: 1.35rem 1rem;
  }

  .contact-card h2,
  .contact-side-card h2 {
    font-size: 1.8rem;
  }

  .contact-btn,
  .contact-pill {
    width: 100%;
  }

  .contact-bottom-cta-inner {
    padding: 2rem 1rem;
  }

  .contact-bottom-cta-inner h2 {
    font-size: 1.9rem;
  }

  .contact-bottom-buttons .contact-btn {
    max-width: 260px;
  }

  .footer-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0.75rem;
    max-width: 100%;
    padding: 0 0.25rem;
  }
}

@media (max-width: 600px) {
  .footer-legal .footer-break {
    display: block;
    height: 0;
  }

  .footer-legal .footer-sep {
    display: none;
  }
}

@media (min-width: 601px) {
  .footer-legal .footer-break {
    display: none;
  }

  .footer-legal .footer-sep {
    display: inline;
  }
}

/* ===== KEEP MOBILE FOOTER LOGO SIZES CONSISTENT ACROSS ALL PAGES ===== */
@media (max-width: 700px) {
  .site-footer .footer-logos img[alt="ION"] {
    height: 76px !important;
    max-height: none !important;
    max-width: 120px !important;
  }

  .site-footer .footer-logos img[alt="SolarGuard"] {
    height: 50px !important;
    max-height: none !important;
    max-width: 110px !important;
  }

  .site-footer .footer-logos img[alt="ROC Bike Customs"] {
    height: 28px !important;
    max-height: none !important;
    max-width: 120px !important;
  }
}

/* ===== MOBILE MENU: STAY VISIBLE AFTER SCROLL ===== */
@media (max-width: 950px) {
  .navbar,
  .navbar.solid,
  .nav-bar {
    overflow: visible !important;
  }

  .navbar.solid {
    backdrop-filter: none !important;
  }

  .mobile-menu {
    position: fixed !important;
    z-index: 99999 !important;
    display: none;
    overflow: visible !important;
  }
}
