/* src/static/nav_styles.css */

/* --- Theme vars (easy to tweak) --- */
:root {
  --nav-bg: rgba(255, 255, 255, 0.92);
  --nav-border: rgba(15, 23, 42, 0.08);
  --nav-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);

  --nav-text: #0f172a;
  --nav-muted: rgba(15, 23, 42, 0.7);

  --nav-pill-bg: rgba(15, 23, 42, 0.06);
  --nav-pill-border: rgba(15, 23, 42, 0.10);

  --nav-hover-bg: rgba(15, 23, 42, 0.06);
  --nav-active: #0d6efd; /* Bootstrap primary */
}

/* --- Navbar container --- */
/* IMPORTANT: position + z-index keeps navbar + dropdown ABOVE the hero */
.navbar {
  background: var(--nav-bg) !important;
  border-bottom: 1px solid var(--nav-border) !important;
  box-shadow: var(--nav-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  position: sticky;   /* keeps it on top while scrolling */
  top: 0;
  z-index: 2000;      /* higher than hero panel/dropdowns */
}

/* Slightly taller + modern spacing */
.navbar .container {
  min-height: 64px;
}

/* Brand: stronger, cleaner */
.navbar-brand {
  color: var(--nav-text) !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Nav links */
.navbar .nav-link {
  color: var(--nav-muted) !important;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--nav-text) !important;
  background: var(--nav-hover-bg);
  transform: translateY(-1px);
}

.navbar .nav-link.active {
  color: var(--nav-text) !important;
  background: var(--nav-pill-bg);
  box-shadow: inset 0 0 0 1px var(--nav-pill-border);
}

/* Toggler button */
.navbar-toggler {
  border: 1px solid var(--nav-border);
  border-radius: 14px;
  padding: 0.45rem 0.6rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.navbar-toggler-icon {
  opacity: 0.85;
}

/* Language dropdown toggle: pill look */
.navbar .dropdown .nav-link.dropdown-toggle {
  background: var(--nav-pill-bg);
  box-shadow: inset 0 0 0 1px var(--nav-pill-border);
  padding: 0.5rem 0.7rem;
}

.navbar .dropdown .nav-link.dropdown-toggle:hover,
.navbar .dropdown .nav-link.dropdown-toggle:focus {
  background: rgba(13, 110, 253, 0.10);
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.25);
}

/* Make the selected flag feel crisp */
.navbar img[width="16"][height="16"] {
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

/* Dropdown menu: modern card style */
/* IMPORTANT: position + z-index ensures it's on top */
.dropdown-menu {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  padding: 0.4rem;
  margin-top: 0.6rem;

  z-index: 2100;
}

/* Dropdown items */
.dropdown-item {
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  font-weight: 600;
  color: var(--nav-text);
  transition: background-color 140ms ease, transform 140ms ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--nav-hover-bg);
  transform: translateY(-1px);
}

.dropdown-item.active,
.dropdown-item:active {
  background: rgba(13, 110, 253, 0.12);
  color: var(--nav-text);
}

/* Ensure right alignment and spacing in your dropdown items */
.dropdown-item span {
  display: inline-flex;
  align-items: center;
}

/* Mobile collapse spacing */
@media (max-width: 991.98px) {
  /* IMPORTANT: give collapse its own background so it doesn't look like it overlaps */
  .navbar .navbar-collapse {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    margin-top: 0.6rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  }

  .navbar .nav-link {
    padding: 0.65rem 0.8rem;
  }

  .dropdown-menu {
    margin-top: 0.35rem;
  }
}
/* Container anchored bottom-right */
.floating-chat {
  position: fixed;
  right: 22px;   /* was 16px (moves it in from the corner) */
  bottom: 22px;  /* was 16px */
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Toggle button */
.floating-toggle {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  position: relative;
  will-change: transform;
}

/* Stacked menu */
.floating-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

/* Each icon */
.chat-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  text-decoration: none;
  position: relative;
  will-change: transform;
}

.chat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* On small screens: hide menu by default, expand when open */
@media (max-width: 991.98px) {
  .floating-menu {
    display: none;
  }
  .floating-menu.open {
    display: flex;
  }
}

/* On large screens: always show the menu, hide toggle button via Bootstrap class d-lg-none */
@media (min-width: 992px) {
  .floating-menu {
    display: flex !important;
  }

  /* Bigger on desktop only */
  .chat-icon {
    width: 62px;   /* was 54px */
    height: 62px;  /* was 54px */
  }

  .floating-toggle {
    width: 58px;   /* was 52px */
    height: 58px;  /* was 52px */
  }

  /* Move it a bit further away from the edges on desktop */
  .floating-chat {
    right: 28px;   /* was 22px */
    bottom: 28px;  /* was 22px */
  }
}

/* Optional hover effect */
.chat-icon:hover {
  transform: translateY(-2px);
  transition: transform 120ms ease;
}

/* -----------------------------
   Pulse + shimmer (add class "pulse")
   ----------------------------- */

/* Soft ring shimmer layer */
.chat-icon::after,
.floating-toggle::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: conic-gradient(
    from 180deg,
    rgba(255,255,255,0.0),
    rgba(255,255,255,0.55),
    rgba(255,255,255,0.0)
  );
  filter: blur(1px);
  opacity: 0;
  transform: rotate(0deg);
  pointer-events: none;
}

/* Apply animations only when .pulse is present */
.chat-icon.pulse,
.floating-toggle.pulse {
  animation: pulsePop 2.8s ease-in-out infinite;
}

.chat-icon.pulse::after,
.floating-toggle.pulse::after {
  animation: shimmerRing 3.2s linear infinite;
  opacity: 0.55;
}

/* Keyframes */
@keyframes pulsePop {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-1px) scale(1.03); }
}

@keyframes shimmerRing {
  0%   { transform: rotate(0deg);   opacity: 0.25; }
  50%  { transform: rotate(180deg); opacity: 0.55; }
  100% { transform: rotate(360deg); opacity: 0.25; }
}

/* Respect accessibility: disable animation if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .chat-icon.pulse,
  .floating-toggle.pulse {
    animation: none !important;
  }
  .chat-icon.pulse::after,
  .floating-toggle.pulse::after {
    animation: none !important;
    opacity: 0 !important;
  }
}


/* Featured Motorbikes Section */

.front-bikes-section {
    padding: 3rem 0;
    background: #f8fafc;
}

.front-bikes-container {
    max-width: 900px; /* Control overall width */
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header with Title and Button */
.front-bikes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.front-bikes-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* View All Button */
.view-btn-all {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.view-btn-all:hover {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
    transform: translateY(-2px);
    color: #1e293b;
}

.view-btn-all:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.view-btn-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.view-btn-all:hover::before {
    left: 100%;
}

/* Featured Motorbikes Section */

.front-bikes-section {
    padding: 3rem 0;
    background: #f8fafc;
}

.front-bikes-container {
    max-width: 1100px; /* Increased from 900px for more breathing room */
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header with Title and Button */
.front-bikes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.front-bikes-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* View All Button */
.view-btn-all {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.view-btn-all:hover {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
    transform: translateY(-2px);
    color: #1e293b;
}

.view-btn-all:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.view-btn-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.view-btn-all:hover::before {
    left: 100%;
}

/* Bikes Grid - 3 columns */
.front-bikes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem; /* Increased from 1.5rem for more space */
}

/* Individual Card */
.front-bike-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 330px; /* Increased from 300px for more room */
}

.front-bike-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

/* Image Section */
.front-bike-image {
    width: 100%;
    height: 160px; /* Increased from 150px */
    overflow: hidden;
    background: #f8fafc;
    flex-shrink: 0;
}

.front-bike-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full image without cropping */
}

/* Content Section */
.front-bike-content {
    padding: 1.25rem; /* Increased from 1rem */
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Header with Name and Price - Stack on desktop, side-by-side on mobile */
.front-bike-header {
    display: flex;
    flex-direction: column; /* Stack vertically on desktop */
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.25rem;
}

.front-bike-name {
    font-size: 1.15rem; /* Slightly larger */
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    width: 100%;
}

.front-bike-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0d6efd;
    margin: 0;
}

/* View Button */
.front-view-btn {
    display: inline-block;
    width: 100%;
    padding: 0.65rem 1rem; /* Slightly more padding */
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #334155;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.front-view-btn:hover {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
    transform: translateY(-2px);
    color: #1e293b;
}

.front-view-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.front-view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.front-view-btn:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .front-bikes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .front-bikes-title {
        font-size: 1.5rem;
    }

    .view-btn-all {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    /* Keep stacked layout on tablets */
    .front-bike-header {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .front-bikes-grid {
        grid-template-columns: 1fr;
    }

    .front-bikes-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .view-btn-all {
        width: 100%;
        text-align: center;
    }

    /* Side-by-side on mobile only */
    .front-bike-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
    }

    .front-bike-name {
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .front-bike-price {
        white-space: nowrap;
    }
}

/* =========================================================
   CONTACT IMAGES
   Change these TWO values to resize the image frames:
   ========================================================= */
.contact-images {
  --img-w: 400px;
  --img-h: 400px;

  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-top: 80px;

  /* center the whole block */
  max-width: calc((var(--img-w) * 2) + 18px); /* 2 images + desktop gap */
  margin-left: auto;
  margin-right: auto;

  /* center items on mobile too */
  justify-items: center;
}

/* tablet+ : side-by-side */
@media (min-width: 768px) {
  .contact-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

/* the frame that holds each image */
.contact-image {
  margin: 0;
  width: 100%;
  max-width: var(--img-w);   /* target width */
}

/* image itself */
.contact-image img {
  width: 100%;
  height: auto;

  /* enforce the target frame while staying responsive */
  aspect-ratio: 4 / 3;       /* 400 / 300 = 4/3 */
  max-height: var(--img-h);
  object-fit: contain;

  display: block;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  background: #fff;
}

/* center them nicely when there is extra space */
@media (min-width: 768px) {
  .contact-image {
    justify-self: center;
  }
}

.phone-copy-wrap{
  display:flex;
  justify-content:center;
  margin: 18px 0 22px;
}

.phone-copy{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background:#fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
  cursor:pointer;
  font-weight:700;
  color:#0f172a;
  line-height:1;
}

.phone-copy:active{
  transform: translateY(1px);
}

.phone-emoji{
  font-size: 1.1rem;
}

.copy-toast{
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(45, 189, 16, 0.92);
  color: #0e110e;
  font-size: 0.95rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 2000;
}

.copy-toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

@media (max-width: 576px){
  .copy-toast{
    bottom: 80px;
  }
}
