/* ============================================
   Melbourne Landing Page - Custom Overrides
   ============================================ */

/* ── 1. Video Stories (YouTube Lightbox) ── */
.video-stories {
  padding: 60px 0 40px;
  background: #F7F6F3;
}
.video-stories__header {
  text-align: center;
  margin-bottom: 12px;
}
.video-stories__header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 8px;
}
.video-stories__header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}
.video-stories__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 40px 30px;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.video-stories__track::-webkit-scrollbar {
  display: none;
}
.video-stories__track.is-dragging {
  cursor: grabbing;
}
.video-story-card {
  flex: 0 0 300px;
  min-width: 300px;
  max-width: 300px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.video-story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.video-story-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: transparent;
  overflow: hidden;
}
.video-story-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-story-card__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 2;
}
.video-story-card:hover .video-story-card__play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: #fff;
}
.video-story-card__play-btn svg {
  margin-left: 3px;
}
.video-story-card__body {
  padding: 16px 20px 20px;
}
.video-story-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}
.video-story-card__quote {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.55;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Video Lightbox Modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
}
.video-modal.is-open {
  display: flex;
}
.video-modal__inner {
  position: relative;
  width: 90%;
  max-width: 900px;
}
.video-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
  transition: opacity 0.2s;
  z-index: 2;
}
.video-modal__close:hover {
  opacity: 0.7;
}
.video-modal__iframe-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}
.video-modal__iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .video-story-card {
    flex: 0 0 260px;
    min-width: 260px;
    max-width: 260px;
  }
  .video-stories__track {
    padding: 16px 20px 24px;
    gap: 16px;
  }
  .video-stories {
    padding: 40px 0 24px;
  }
  .video-modal__close {
    top: -36px;
    right: -4px;
  }
}

/* ── 2. Brand Ticker / Marquee ── */
.brand-ticker {
  padding: 48px 0 40px;
  background: #f7f6f3;
  overflow: hidden;
  position: relative;
}
.brand-ticker__label {
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #888;
  margin-bottom: 28px;
  font-weight: 600;
}
.brand-ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 35s linear infinite;
}
.brand-ticker__track:hover {
  animation-play-state: paused;
}
.brand-ticker__set {
  display: flex;
  align-items: center;
  gap: 72px;
  padding: 0 36px;
}
img.brand-ticker__logo {
  height: 56px !important;
  min-height: 56px !important;
  width: auto !important;
  min-width: 60px !important;
  max-width: 160px !important;
  object-fit: contain !important;
  opacity: 0.65 !important;
  filter: grayscale(100%) !important;
  transition: opacity 0.3s, filter 0.3s;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  border-radius: 0 !important;
}
/* Hide old Gatsby brands section if any remnant exists */
.brands { display: none !important; }
.brands-logos { display: none !important; }
.brand-ticker__logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}
.brand-ticker::before,
.brand-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.brand-ticker::before {
  left: 0;
  background: linear-gradient(to right, #f7f6f3, transparent);
}
.brand-ticker::after {
  right: 0;
  background: linear-gradient(to left, #f7f6f3, transparent);
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .brand-ticker {
    padding: 32px 0 28px;
  }
  .brand-ticker__set {
    gap: 48px;
  }
  .brand-ticker__logo {
    height: 40px;
    max-width: 110px;
  }
}


/* ── 4. Minimal Footer ── */
.footer-minimal {
  background: #F7F6F3;
  color: #444;
  padding: 48px 0 24px;
}
.footer-minimal .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-minimal__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.footer-minimal__brand {
  flex: 0 0 auto;
}
.footer-minimal__brand svg {
  height: 50px;
  width: auto;
}
.footer-minimal__brand svg path,
.footer-minimal__brand svg polygon,
.footer-minimal__brand svg rect {
  fill: #43B47C;
}
.footer-minimal__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-minimal__links a {
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-minimal__links a:hover {
  color: #43B47C;
}
.footer-minimal__social {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-minimal__social a {
  color: #555;
  transition: color 0.2s;
  display: flex;
}
.footer-minimal__social a:hover {
  color: #43B47C;
}
.footer-minimal__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-minimal__copyright {
  font-size: 0.8rem;
  color: #888;
}
.footer-minimal__back-to-top {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(0,0,0,0.15);
  color: #555;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.footer-minimal__back-to-top:hover {
  border-color: #43B47C;
  color: #43B47C;
}

@media (max-width: 768px) {
  .footer-minimal__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-minimal__links {
    justify-content: center;
  }
  .footer-minimal__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ── 5. Why Melbourne Locals Choose Us ── */
.why-choose-us {
  padding: 60px 0;
  background: linear-gradient(180deg, #f0f7f3 0%, #F7F6F3 100%);
}
.why-choose-us .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.why-choose-us__header {
  text-align: center;
  margin-bottom: 40px;
}
.why-choose-us__header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 8px;
}
.why-choose-us__header p {
  font-size: 1.05rem;
  color: #666;
}
.why-choose-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-choose-us__card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.why-choose-us__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}
.why-choose-us__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f9f0 0%, #d4f0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}
.why-choose-us__stat {
  font-size: 1.65rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 4px;
}
.why-choose-us__label {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .why-choose-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .why-choose-us__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .why-choose-us__card {
    padding: 20px 14px;
  }
  .why-choose-us__stat {
    font-size: 1.35rem;
  }
}

/* ── 6. Conversion Optimizations ── */

/* 6a. Hero CTA - More prominent */
.melbourne-landing__hero-quick-cta-btn {
  font-size: 1.1rem !important;
  padding: 14px 28px !important;
  box-shadow: 0 4px 15px rgba(67,180,124,0.35) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.melbourne-landing__hero-quick-cta-btn:hover {
  transform: scale(1.04) !important;
  box-shadow: 0 6px 25px rgba(67,180,124,0.45) !important;
}

/* 6b. Trust signals - more visible */
.melbourne-landing__hero-trust {
  font-weight: 600 !important;
}
.melbourne-landing__hero-trust span {
  position: relative;
}

/* 6c. Phone number styling */
a[href^="tel:"] {
  white-space: nowrap;
}

/* 6d. CTA button consistency */
.melbourne-landing__mid-cta-btn,
.melbourne-landing__final-cta-btn {
  box-shadow: 0 4px 15px rgba(67,180,124,0.3) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.melbourne-landing__mid-cta-btn:hover,
.melbourne-landing__final-cta-btn:hover {
  transform: scale(1.03) !important;
  box-shadow: 0 6px 22px rgba(67,180,124,0.4) !important;
}

/* 6e. Mobile sticky CTA - hidden on desktop */
.sticky-cta {
  display: none !important;
}
@media (max-width: 768px) {
  .sticky-cta.is-visible {
    display: flex !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
  }
  .sticky-cta__button {
    box-shadow: 0 2px 10px rgba(67,180,124,0.3) !important;
  }
}

/* 6f. Hero content mobile spacing fix */
@media (max-width: 768px) {
  .melbourne-landing__hero {
    padding-top: 80px !important;
  }
  .melbourne-landing__hero-content {
    padding-top: 0 !important;
  }
  .melbourne-landing__hero-badge {
    margin-top: 0 !important;
  }
}

/* Full-background hero mobile fix */
@media (max-width: 768px) {
  .melbourne-landing__hero {
    min-height: 100vh !important;
    background-position: center top !important;
  }
  .melbourne-landing__hero > div:nth-child(2) {
    padding: 100px 20px 100px !important;
  }
  .melbourne-landing__hero h1 {
    font-size: 2.2rem !important;
  }
  .melbourne-landing__hero-quick-cta {
    flex-direction: column !important;
    gap: 0 !important;
  }
  .melbourne-landing__hero-quick-cta input {
    border-radius: 50px !important;
    border-right: 2px solid #ccc !important;
    margin-bottom: 12px !important;
  }
  .melbourne-landing__hero-quick-cta-btn {
    border-radius: 50px !important;
    width: 100% !important;
  }
  .melbourne-landing__hero-stats {
    gap: 20px !important;
    padding: 16px 10px !important;
  }
}

/* Hero image larger on big screens */
@media (min-width: 1200px) {
  .melbourne-landing__hero {
    min-height: 600px !important;
    align-items: center !important;
  }
  .melbourne-landing__hero-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .melbourne-landing__hero-image img {
    max-width: 720px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }
}
@media (min-width: 1600px) {
  .melbourne-landing__hero {
    min-height: 700px !important;
  }
  .melbourne-landing__hero-image img {
    max-width: 850px !important;
  }
}

/* 6g. Urgency text near CTAs */
.cta-urgency {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: #888;
  margin-top: 10px;
  letter-spacing: 0.3px;
}
.cta-urgency strong {
  color: #B578FE;
  font-weight: 700;
}

/* 6h. Modal polish */
.modal-form__submit {
  font-size: 1.1rem !important;
  padding: 1rem 2rem !important;
}
.modal-step p {
  font-size: 0.95rem;
}

/* Hide old footer, old success stories, old brands */
/* These are handled by the Python replacement */

/* (old testimonial video styles removed - replaced by video-stories) */

/* ── Client Stories Scroller (matches video stories style) ── */
section.client-stories-section {
  padding: 60px 0 40px !important;
  background: #F7F6F3 !important;
  overflow: hidden !important;
}
.client-stories-header {
  text-align: center !important;
  max-width: 700px !important;
  margin: 0 auto 12px !important;
  padding: 0 24px !important;
}
.client-stories-header h2 {
  font-family: Getgoingpt, sans-serif !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: #333 !important;
  margin-bottom: 8px !important;
}
.client-stories-header p {
  font-size: 1.1rem !important;
  color: #666 !important;
  max-width: 600px !important;
  margin: 0 auto !important;
}
div#clientStoriesScroller {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 24px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: smooth !important;
  padding: 20px 40px 30px !important;
  cursor: grab !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}
div#clientStoriesScroller::-webkit-scrollbar {
  display: none !important;
}
div#clientStoriesScroller > div {
  flex: 0 0 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  background: #fff !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
  transition: transform 0.3s, box-shadow 0.3s !important;
  border: none !important;
}
div#clientStoriesScroller > div:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
}
div#clientStoriesScroller > div img.client-story-card__img,
div#clientStoriesScroller > div > div:first-child {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  display: block !important;
}
.client-story-card__body {
  padding: 16px 20px 20px !important;
}
.client-story-card__name {
  font-family: Getgoingpt, sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin-bottom: 2px !important;
}
.client-story-card__stars {
  color: #f5a623 !important;
  font-size: 0.9rem !important;
  margin-bottom: 8px !important;
  letter-spacing: 2px !important;
}
.client-story-card__quote {
  font-size: 0.88rem !important;
  color: #555 !important;
  line-height: 1.55 !important;
  font-style: italic !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
@media (max-width: 768px) {
  section.client-stories-section {
    padding: 40px 0 24px !important;
  }
  .client-stories-header h2 {
    font-size: 1.5rem !important;
  }
  div#clientStoriesScroller {
    padding: 16px 20px 24px !important;
    gap: 16px !important;
  }
  div#clientStoriesScroller > div {
    flex: 0 0 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
  }
  div#clientStoriesScroller > div img.client-story-card__img,
  div#clientStoriesScroller > div > div:first-child {
    height: 160px !important;
  }
}

/* Auto-scroll animation for client stories */
@keyframes client-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.client-stories-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 24px !important;
  animation: client-scroll 45s linear infinite !important;
}
.client-stories-track:hover {
  animation-play-state: paused !important;
}
/* Fade edges */
div#clientStoriesScroller::before,
div#clientStoriesScroller::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 60px !important;
  z-index: 3 !important;
  pointer-events: none !important;
}
div#clientStoriesScroller::before {
  left: 0 !important;
  background: linear-gradient(to right, #F7F6F3, transparent) !important;
}
div#clientStoriesScroller::after {
  right: 0 !important;
  background: linear-gradient(to left, #F7F6F3, transparent) !important;
}
