/* ==========================================================================
   TELEPORT – style.css
   Notes for new dev:
   - Parallax uses ::before + ::after layers; JS likely updates --parallaxY.
   - Preloader is fixed + centered via flex.
   ========================================================================== */


/* ==========================================================================
   1) DESIGN TOKENS / THEME
   ========================================================================== */
:root{
  --bg:#0b132b;
  --bg-2:#1c2541;
  --brand:#3a86ff;
  --accent:#ffd166;
  --text:#e6eefc;
  --muted:#a8b3d1;
  --card:#101a34;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
}


/* ==========================================================================
   2) GLOBAL RESETS & BASE ELEMENTS
   ========================================================================== */
*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
}

a{ color:var(--accent); text-decoration:none; font-weight: bold;}
/* a:focus{ outline:2px dashed var(--accent); outline-offset:2px; } */

button{ cursor:pointer; }

p{
  color:var(--muted);
  line-height:1.6;
  font-size:1.125rem;
  margin:0;
}
p + p{ margin-top:10px; }

li {
  color:var(--muted);
  line-height:1.6;
  font-size:1.125rem;
  margin:0;
}

h1,h2,h3,h4{ margin:0 0 6px 0; }


/* ==========================================================================
   3) NAVIGATION
   - Sticky top nav with mobile hamburger behavior
   ========================================================================== */
.nav{
  position: sticky;
  top:0;
  z-index: 1000;
  background: rgba(11,19,43,0.5);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

.nav-inner{
  max-width:1200px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:16px;
  padding:12px 20px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  letter-spacing:.5px;
}

.nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.nav a.link{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  color:var(--text);
  font-size:.73rem;
}

.nav a.link[aria-current="page"],
.nav a.link.active{
  background:var(--brand);
  color:white;
}

.spacer{ flex:1; }
.cta-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%; /* define the container height */
  white-space: nowrap;
}

.cta-phone a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-phone a button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.8rem;

}

.hamburger{ display:none; }

/* Mobile nav layout */
@media (max-width:900px){
  .nav{background: rgba(11,19,43,1);}
  .nav-inner{ flex-wrap:wrap; }
  .menu{ display:none; width:100%; }
  .menu.open{ display:block; }
  .nav ul{ flex-direction:column; align-items:flex-start; }

  .hamburger{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:transparent;
    border:1px solid rgba(255,255,255,.2);
    border-radius:10px;
    color:var(--text);
    padding:8px 10px;
    font-size:.95rem;
  }

  .spacer{ display:none; }

  .cta-phone{
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}


/* ==========================================================================
   4) GENERIC LAYOUT HELPERS
   ========================================================================== */
section{ position:relative; }

.wrap{
  max-width:1200px;
  margin:auto;
  padding:64px 20px;
}

.eyebrow{
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:.9rem;
}


/* ==========================================================================
   5) HERO / HOME (PARALLAX)
   - The hero uses pseudo-elements for the background image + overlay gradient.
   - JS updates --parallaxY to animate background position.
   ========================================================================== */
.hero{
  min-height:100vh;
  display:grid;
  align-items:center;
  text-align:center;
  color:white;
  position:relative;
  overflow:hidden;
}

.parallax{
  position:relative;
  isolation:isolate;
}

.parallax::before{
  content:"";
  position:absolute;
  inset:-12% 0;
  background-image:url('../assets/main_header.jpg');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  transform:translate3d(0, var(--parallaxY, 0px), 0) scale(1.03);
  will-change:transform;
  z-index:0;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}

.parallax::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(rgba(11,19,43,.15),rgba(11,19,43,.75));
  z-index:1;
}

.Top-wrap{
  position:relative;
  z-index:2;
}

.hero .content{
  max-width:980px;
  margin:0 auto;
  padding:0;
}

.lead{
  color:var(--text);
  opacity:.95;
  margin:10px 0 0;
  font-size:1.125rem;
}

.buttons{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
  margin-top:18px;
}

/* ==========================================================================
   Changed button implementation to only rely on "Book Now" button
   Added hover animation to button for more interactivity
   ========================================================================== */

/* .btn{
  padding:12px 16px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.06);
  color:white;
  font-size:.95rem;
  font-weight:500;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn.primary{ background:var(--brand); border-color:transparent; }
.btn.outline{ background:transparent; } */

.bookNow{
  position: relative;
  border-color: transparent !important;
  background-color: var(--brand);
  font-size: x-large !important;
  color: white;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 16px !important;
  padding: 14px 28px !important;
  padding-left: 34px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
  transition: background-color 0.3s ease;
}

.bookNow:hover{
  background-color:#2563EB;
}


/* ==========================================================================
   6) HIGHLIGHTS TICKER
   ========================================================================== */
.highlights{
  width:100%;
  margin:28px 0 0;
  position:relative;
  min-height:100px;
  overflow:hidden;
  background:linear-gradient(90deg, rgba(11,19,43,.96), rgba(28,37,65,.98));
  border-top:2px solid var(--brand);
  border-bottom:2px solid var(--brand);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:inset 0 0 28px rgba(58,134,255,.35);
  z-index: -1;
}

.highlight{
  position:absolute;
  left:50%;
  top: 50%;
  transform:translate(-50%,-50%) scale(1);
  opacity:0;
  transition:opacity .6s ease, transform .6s ease;
  font-weight:900;
  font-size:clamp(1.3rem, 3vw, 2rem);
  letter-spacing:.5px;
  color:#fff;
  background:linear-gradient(270deg, var(--brand), var(--accent), var(--brand));
  background-size:600% 600%;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:0 0 12px rgba(255,255,255,.14);
  z-index: -1;
  user-select: none;
}

.highlight.active{
  opacity:1;
  animation:gradientMove 4s linear infinite, fadeZoom 700ms ease forwards;
}

/* ==========================================================================
   HIGHTLIGHTS TICKER ADDED DIFFERENT CURSOR ON HOVER
   ========================================================================== */
.highlight:hover{
  cursor: pointer;
}

@media (max-width:900px)
{
  .highlight
  {
    width: 400px;
  }
}

@keyframes gradientMove{
  0%{ background-position:0% 50% }
  50%{ background-position:100% 50% }
  100%{ background-position:0% 50% }
}
@keyframes fadeZoom{
  from{ transform:translate(-50%,-50%) scale(.94); opacity:0 }
  to{ transform:translate(-50%,-50%) scale(1); opacity:1 }
}


/* ==========================================================================
   7) SECTION HEIGHT RULES
   - Desktop: force these sections to fill viewport height.
   - Mobile: Patch B disables min-height for more natural stacking.
   ========================================================================== */
#booking, #faq{ min-height:100vh; }

/* PATCH B (Mobile height + wrap padding) */
@media (max-width:900px){
  #booking, #faq{
    min-height:auto !important;
    height:auto !important;
  }

  .wrap{
    padding-top:40px !important;
    padding-bottom:40px !important;
  }

  .hero{
    margin-bottom:0 !important;
  }

  section{ overflow-anchor:none; }
}


/* ==========================================================================
   8) FORM CONTROLS
   ========================================================================== */
input,select{
  width:100%;
  padding:12px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:#0e1832;
  color:var(--text);
  font-size:1rem;
}


/* ==========================================================================
   9) STRIPES (PARALLAX-LIKE SEPARATORS)
   ========================================================================== */
.stripe{
  position:relative;
  min-height:40vh;
  overflow:hidden;
  margin-top:-1px;
  isolation:isolate;
}

.stripe::before{
  content:"";
  position:absolute;
  inset:-20% 0;
  background-size:cover;
  background-position:center;
  transform:translate3d(0, var(--parallaxY, 0px), 0) scale(1.12);
  will-change:transform;
  z-index:0;
}

.stripe::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(rgba(28,37,65,.6), rgba(28,37,65,.9));
  z-index:1;
}

.stripe.memorial::before{
  background-image:url('../assets/memorial_drive_night.jpg');
}

.stripe.bowbridge::before{
  background-image:url('../assets/nightime_bow_bridge\(cropped\).jpg');
}


/* ==========================================================================
   10) CARDS & ACCORDIONS
   ========================================================================== */
.section-head{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  align-items:flex-end;
  margin-bottom:12px;
}
.section-head h2{ font-size:1.8rem; }

.features{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  /* margin-top:18px; */
}
.feature{
  background:var(--card);
  border:1px solid rgba(255,255,255, 0.5);
  border-radius:14px;
  padding:16px;
  color: var(--accent);
  text-align: center;
  font-size: 18px;
}
@media (max-width:900px){
  .features{ grid-template-columns:1fr; }
}

.ride-card{
  background:var(--card);
  border:1px solid rgba(255,255,255,.06);
  border-radius:18px;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.ride-image{
  border-radius:14px;
  overflow:hidden;
  max-height:350px;
}
.ride-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

details{
  position: relative;
  background:var(--card);
  border:1px solid rgba(255,255,255,.06);
  border-radius:12px;
  padding:14px;
}
details + details{ margin-top:10px; }

summary{
  cursor:pointer;
  font-weight:600;
  list-style:none;
  width: 80%;
}
summary::-webkit-details-marker{ display:none; }

.accordion-panel{
  height:0;
  overflow:hidden;
  opacity:0;
  transform:translateY(-8px);
  transition: height 420ms ease, opacity 260ms ease, transform 260ms ease;
}
details[open].accordion .accordion-panel{
  opacity:1;
  transform:translateY(0);
}


/* ==========================================================================
   11) FOOTER
   ========================================================================== */
footer{
  background:var(--bg-2);
  border-top:1px solid rgba(255,255,255,.08);
}

/* ==========================================================================
   Reworked footer for less items (removed in-site links). 2fr 1fr 1fr 1fr ->
   1fr 1fr 1fr
   ========================================================================== */

.footer-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:16px;
}

.terms-privacy-row{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:20px;
}

#privacy{
  position: relative;
  height: 100%;
  top: -10px;
}

@media (max-width:900px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .footer-grid .full{ grid-column:1/-1; }
  .terms-privacy-row{ grid-template-columns:1fr; }
}

.pill{
  display:inline-block;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,0.5);
  padding:6px 10px;
  border-radius:999px;
  font-size:.95rem;
}


/* ==========================================================================
   12) TOAST + PRELOADER
   ========================================================================== */
.toast{
  position:fixed;
  bottom:20px;
  right:20px;
  background:#0e1832;
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
  padding:12px 14px;
  border-radius:12px;
  opacity:0;
  transform:translateY(10px);
  transition:all .3s ease;
}
.toast.show{
  opacity:1;
  transform:translateY(0);
}

#preloader{
  position:fixed;
  inset:0;
  z-index:9999;
  background:linear-gradient(180deg,#0b132b 0%,#1c2541 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  transition:opacity 600ms ease, visibility 600ms ease;
}

#preloader.hidden{
  opacity:0;
  visibility:hidden;
}

.loader{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin:0;
  padding:0;
  width:100%;
}

.loader span{
  display:block;
  max-width:90vw;
  text-align:center;
}

.loader .ring{
  width:56px;
  height:56px;
  border-radius:50%;
  border:3px solid rgba(255,255,255,.15);
  border-top-color:#3a86ff;
  animation:spin 1.1s linear infinite;
  display:block;
  margin:0 auto;
}

@keyframes spin{
  to{ transform:rotate(360deg); }
}


/* ==========================================================================
   13) CONSOLIDATED MOBILE VISUAL FIXES (<= 900px)
   Keeps final effective output of your previous overlapping mobile rules:
   - 1px overlap between hero and booking to remove micro-gaps
   - Force hero background pseudo-element to cover reliably on small widths
   ========================================================================== */
@media (max-width: 900px){

  body{
    background-color:#0b132b !important;
  }

  .hero{
    margin-bottom:-1px !important;
    overflow:hidden !important;
  }

  #booking{
    margin-top:-1px !important;
    padding-top:41px !important;
  }

  .parallax::before{
    inset:0 !important;
    height:100% !important;

    background-size:cover !important;
    background-position:50% 15% !important;

    top:-5% !important;
    bottom:0 !important;

    transform:scale(1.1) !important;
    will-change:auto !important;
  }
}

/* ==========================================================================
   Slot FAQ into two columns.
   ========================================================================== */

#faq-container{
  column-count: 2;
  column-gap: 40px;
  column-rule: 1px solid var(--brand);
}

@media (max-width: 900px)
{
  #faq-container{
    column-count: 1;
  }
}

/* ==========================================================================
   Prevent FAQ/Terms & Conditions/Privacy Policy from being closed
   ========================================================================== */

details[disabled] summary,
details.disabled summary {
  pointer-events: none;
  user-select: none;
  page-break-inside: avoid;
}

#booking-button-container{
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ==========================================================================
   Prevent FAQ from breaking on column wrap
   ========================================================================== */

details {
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

/* ==========================================================================
   Social media icon formatting
   ========================================================================== */

#social-icons{
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   Microtext
   ========================================================================== */

#micro-text{
  font-size: small;
}

.banner-gallery-container{
  display: flex;
  justify-content: center;
  margin: 20px;
}

.partner-banner{
  background: #ffffff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: 0.3s ease;
  height: 200px;
}

/* ==========================================================================
   Gallery Arrows
   ========================================================================== */

.arrow {
  border: solid white;
  border-width: 0 10px 10px 0;
  display: inline-block;
  padding: 3px;
  width: 30px;
  height: 30px;
}

.right {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.left {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
  border-color: rgba(255, 255, 255, 0.5);
}

.gallery-button{
  background-color: rgba(0, 0, 0, 0);
  border: none;
}

#seperator{
  color: var(--brand);
  width: 90%;
}

.white{
  color: white;
}

/* ==========================================================================
   Scrolling Gallery
   ========================================================================== */

#scroll-container {
  width: 100%;
  height: 80%;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  background: white;
  color: #fff;
}

#scroll-container .scroll {
  background: white;
  display: flex;
  position: absolute;
  align-items: center;
  justify-content: space-around;
  width: fit-content;
  white-space: nowrap;
  animation: loop 30s linear infinite;
}

#scroll-container .scroll#scroll-two {
  transform: translateX(100%);
  animation-delay: 15s;
}

@keyframes loop {
    0% {transform: translateX(100%);}
    100% {transform: translateX(-100%);}
}

.item {
    display: flex;
    align-items: center;
    background-color: white;
    margin: 0rem 5rem;
    white-space: nowrap;
}

#scroll-container img{
  height: 100px;
  width: auto;
}

#partner-container{
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: white;
  height: 230px;
  margin: auto;
  width: 65%;
}

#partner-title-container{
  height: 20%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

#partner-title{
  text-align: center;
  color: black;
  font-weight: 500;
  font-size: 22px;
}

@media (max-width:900px){
  #partner-container{
    height: 180px;
    width: 100%;
  }
  #scroll-container {
    height: 80%;
    padding: 1rem;
  }
  #scroll-container img{
    height: 84px;
  }
  #partner-title{
    font-size: 14px;
  }
  .item{
    margin: 0rem 1rem;
  }
}

/* ==========================================================================
   Mobile VS Desktop FAQ Behaviour
   ========================================================================== */

.faq-item summary{
  pointer-events: none;
}

@media (max-width: 900px)
{
  .faq-item summary {
    pointer-events: auto;
  }

  summary::after {
    content: "+";
    right: 10px;
    position: absolute;
    top: 0%;
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.3);
  }

  details[open] summary::after {
    top: 0.2rem;
    content: "−";
  }
}

/* ==========================================================================
   Events Section
   ========================================================================== */

#events-container {
  background-color: var(--bg-2);
  border: solid 1px rgba(255, 255, 255, 0.3);
  border-radius: 0.8rem;
  padding: 1rem;
  margin: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.2rem;
}

#events-container p {
  color: rgba(255, 255, 255, 0.8)
}

.event-button {
  height: 50px;
  width: auto;
  border: solid 3px var(--bg);
  border-radius: 1rem;
  margin-top: 2rem;
  margin-right: 0.8rem;
  background-color: white;
  overflow: hidden;
}

.event-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.event-button:hover {
  opacity: 0.8;
}
