/* Shared page-level overrides for Memoria Films */

/* Pricing tweaks */
#pricing .package-summary {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0 12px;
  line-height: 1.45;
}

/* Remove yellow tint background from Film Package on these pages */
#pricing .film-package {
  background: #ffffff;
}

/* Fancybox close button: small circular button in top-right inside modal */
.fancybox__container .f-button.is-close-btn,
.fancybox__content > .f-button.is-close-btn {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  width: 32px !important;
  height: 32px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: #777777 !important;    /* gray circle */
  color: #ffffff !important;         /* white X */
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  opacity: 0.9;
  padding: 0 !important;            /* remove default padding that made it oval */
  display: flex !important;         /* center the SVG */
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  --f-button-color: #ffffff;         /* icon color */
  --f-button-hover-color: #ffffff;
  --f-button-bg: #777777;
  --f-button-hover-bg: #666666;      /* slightly darker on hover */
}
.fancybox__container .f-button.is-close-btn svg,
.fancybox__content > .f-button.is-close-btn svg {
  width: 16px !important;
  height: 16px !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  fill: none !important;
}
/* Hide full-width toolbar look and style its close button */
.fancybox__toolbar {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.fancybox__toolbar .f-button.is-close-btn {
  width: 32px !important;
  height: 32px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: #777777 !important;    /* gray circle */
  color: #ffffff !important;         /* white X */
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  margin: 12px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  --f-button-color: #ffffff;
  --f-button-hover-color: #ffffff;
  --f-button-bg: #777777;
  --f-button-hover-bg: #666666;
}

/* Make contact modal wider on desktop */
@media (min-width: 992px) {
  #contact-modal {
    width: 75vw !important;
    max-width: 75vw !important;
  }
}

/* Affirm note under Payment Options */
#pricing .affirm-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  color: #1a1a1a;
  font-size: 0.95rem;
  text-align: center;
}
#pricing .affirm-note img {
  height: 28px;
  width: auto;
  display: block;
}
@media (min-width: 992px) {
  #pricing .affirm-note img {
    height: 36px;
  }
}

/* Featured Payment Options under packages */
#pricing .pricing-payment-inline {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
#pricing .pricing-payment-inline .affirm-note {
  width: 100%;
  max-width: 720px;
  gap: 8px;
}
#pricing .affirm-note .affirm-headline {
  font-weight: 700;
  font-size: 1.1rem;
}
@media (min-width: 992px) {
  #pricing .affirm-note .affirm-headline {
    font-size: 1.3rem;
  }
}

/* Our Process: widen section description */
#our-process .section-header {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
#our-process .section-header .section-description {
  max-width: 980px;
}

/* Our Process: step nav buttons inside photo region, single row */
.vertical-process-carousel { position: relative; }
.vertical-process-carousel .process-content { position: relative; overflow: hidden; }
.vertical-process-carousel { margin-top: 16px; }
@media (min-width: 992px) { .vertical-process-carousel { margin-top: 48px; } }
.vertical-process-carousel .process-nav {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important; /* always one row */
  gap: 12px; /* inner gap */
  padding: 0 12px; /* outer gutter equals inner gap */
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .vertical-process-carousel .process-nav { top: 16px; padding-left: 16px; padding-right: 16px; gap: 16px; }
}
@media (min-width: 1200px) {
  .vertical-process-carousel .process-nav { top: 20px; padding-left: 20px; padding-right: 20px; gap: 20px; }
}
.vertical-process-carousel .process-nav .process-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  background: #ffffff !important; /* force white like Why It Matters cards */
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 4px 10px; /* thinner vertically */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-bottom-width: 6px !important; /* ensure visible */
  border-bottom-style: solid !important;
  border-bottom-color: #cfcfcf !important; /* slightly darker gray for visibility */
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease, border-bottom-color .15s ease, background-color .15s ease;
  min-width: 0; /* allow shrink to prevent overflow */
  box-sizing: border-box; /* include borders in width to avoid overflow rounding */
}
.vertical-process-carousel .process-nav .process-nav-btn:hover {
  background: #ffffff !important; /* prevent yellow hover */
  background-image: none !important; /* override any gradient */
  outline: none !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16) !important; /* gray hover shadow */
  border-bottom-color: #cfcfcf !important; /* keep gray on hover */
}
.vertical-process-carousel .process-nav .process-nav-btn.active {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  border-bottom-color: #f9ed2a !important; /* yellow when active */
}
.vertical-process-carousel .process-nav .process-nav-btn .nav-step-number {
  display: inline-block;
  font-weight: 700;
  padding: 0;
  border: none;
  background: transparent;
  color: #1a1a1a;
}
.vertical-process-carousel .process-nav .process-nav-btn .nav-step-title {
  font-weight: 700;
}

/* Push the slide content down so it's centered between the nav and bottom of image */
.vertical-process-carousel .process-slide .process-slide-content { padding-top: 70px; }
@media (min-width: 768px) { .vertical-process-carousel .process-slide .process-slide-content { padding-top: 90px; } }
@media (min-width: 1200px) { .vertical-process-carousel .process-slide .process-slide-content { padding-top: 110px; } }

/* Why It Matters: reduce vertical padding */
#why-it-matters.section {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* Quote: reduce padding on mobile only */
@media (max-width: 640px) {
  .quote-section {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

/* Pricing: increase top padding to match other sections */
#pricing.section {
  padding-top: 96px;
}

/* Navigation: enable hamburger and overlay nav on tablet (<= 992px) */
@media (max-width: 992px) {
  /* Show the hamburger toggle */
  .mobile-menu-toggle {
    display: flex !important;
    z-index: 1001;
  }

  /* Slightly tighten nav bar and logo to reduce crowding */
  .nav-container {
    height: 64px;
  }
  .logo-image {
    height: 56px;
  }

  /* Make the links a full-screen overlay menu (mirror mobile behavior) */
  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem 2rem;
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.1);
    backdrop-filter: blur(20px);
    text-align: center !important;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
  }

  .nav-links.active {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
  }

  .nav-links a {
    margin: 0.5rem 0;
    font-size: 1.125rem;
    text-align: center !important;
  }
}

/* Tablet (769px–992px): revert to inline text links and tighten spacing */
@media (min-width: 769px) and (max-width: 992px) {
  /* Keep hamburger hidden on tablet */
  .mobile-menu-toggle { display: none !important; }

  /* Compact navbar and logo */
  .nav-container { height: 64px; }
  .logo-image { height: 56px; }

  /* Inline nav links (override overlay styles) */
  .nav-links {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    text-align: left !important;
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: auto !important;
    gap: 18px !important; /* tighter than desktop 30px */
    display: flex !important;
  }

  .nav-links.active { /* neutralize active overlay state */
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
  }

  /* Smaller text links */
  .nav-links a {
    margin: 0 !important;
    font-size: 0.95rem !important; /* smaller than desktop */
    text-align: left !important;
    padding-bottom: 4px !important;
  }

  /* Slightly smaller CTA */
  .nav-btn-book-call {
    font-size: 0.95rem !important;
    padding: 0.4rem 0.8rem !important;
  }
}
