/* Projects Page Stylesheet - FrshlyBaked */
@import url("global.css?v=65");

/* Featured Projects Header Banner */
.featured-projects-header {
  width: 100%;
  padding: 140px 24px 0px;
  text-align: center;
  background-color: transparent;
  overflow: visible;
}

.featured-projects-title {
  font-family: var(--_frshlybaked-tokens---main-heading-can-reg);
  font-size: clamp(3.2rem, 1rem + 0.9vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--_frshlybaked-tokens---text-dark-main);
  margin: 0;
  line-height: 1;
}

/* FALLOW Featured Project Section */
.fallow-project-section {
  width: 100%;
  background-color: var(--_frshlybaked-tokens---text-dark-main);
  color: var(--off-white);
}

.fallow-header-block {
  padding: 38px 24px 38px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.fallow-title.card-project-name {
  color: var(--off-white) !important;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 0;
  font-family: var(--_frshlybaked-tokens---main-body-family);
}

.fallow-tags-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.fallow-pill.card-industry-pill {
  background-color: transparent !important;
  color: var(--off-white) !important;
  border: none;
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0;
  display: inline-block;
  font-family: var(--_frshlybaked-tokens---main-body-family);
}

.fallow-divider {
  width: 100%;
  max-width: 850px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.25);
  margin: 8px auto 20px;
}

.fallow-desc.brand-card-p {
  color: var(--off-white) !important;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 200;
  line-height: 1.45;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.fallow-image-container {
  width: 100%;
  display: block;
  line-height: 0;
  overflow: hidden;
}

.fallow-featured-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive adjustments for lower breakpoints */
@media (max-width: 991px) {
  .fallow-header-block {
    padding: 20px 24px;
  }
}

@media (max-width: 767px) {
  .featured-projects-header {
    padding-top: clamp(110px, 15vh, 130px) !important;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 30px;
  }

  .fallow-header-block {
    padding: 20px 16px;
    width: 100%;
  }

  .fallow-title.card-project-name {
    text-align: center;
    width: 100%;
    align-self: center;
  }

  .fallow-tags-row {
    gap: 12px;
    width: 100%;
    justify-content: center;
  }

  .fallow-desc.brand-card-p {
    font-size: 0.95rem;
    padding: 0 8px;
    text-align: center;
    width: 100%;
  }
}

/* Isolated Dark Mode for Projects Page */
body.projects-dark-mode, 
.projects-dark-mode .page-wrapper, 
.projects-dark-mode .body, 
.projects-dark-mode .dynamic-frame-section {
  background-color: #202020 !important;
}

.dynamic-frame-section {
  margin-bottom: var(--frshly-section-space) !important;
}

.projects-dark-mode .se-clean-header {
  padding-top: var(--frshly-section-space-tight) !important;
  padding-bottom: var(--frshly-section-space-tight) !important;
}

.projects-dark-mode .section-heading-band .se-clean-header {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 767px) {
  .dynamic-frame-section {
    margin-bottom: var(--frshly-section-space-tight) !important;
  }
}

body.projects-dark-mode, 
.projects-dark-mode .page-wrapper, 
.projects-dark-mode .body, 
.projects-dark-mode .featured-projects-title,
.projects-dark-mode h1, 
.projects-dark-mode h2, 
.projects-dark-mode h3, 
.projects-dark-mode h4,
.projects-dark-mode .footer-copyright,
.projects-dark-mode .footer-cta-heading,
.projects-dark-mode .footer-email-link,
.projects-dark-mode .footer-socials-label,
.projects-dark-mode .footer-legal-label,
.projects-dark-mode .footer-text-link {
  color: #f5f2e4 !important;
}

.projects-dark-mode .footer-row {
  border-top-color: #f5f2e4 !important;
  border-bottom-color: #f5f2e4 !important;
}

.projects-dark-mode .footer-partner-logo,
.projects-dark-mode .footer-social-icon {
  filter: brightness(0) invert(0.95);
  opacity: 0.85;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.projects-dark-mode .footer-partner-logo:hover,
.projects-dark-mode .footer-social-icon:hover {
  opacity: 1;
  filter: brightness(0) invert(1);
}

.projects-dark-mode .frame {
  background-color: #202020;
}

.frame-image {
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 500ms ease, transform 650ms ease;
  will-change: opacity, transform;
}

.frame-image.is-loaded {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .frame-image {
    transition: none;
    transform: none;
  }
}

/* Glass View Project Button */
.view-project-btn {
  position: absolute;
  bottom: 9%;
  left: 50%;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  font-size: 13.5px;
  padding: 12px 24px;
  cursor: url('https://pixelarticons.com/free/cursors/pointer.png') 4 1, auto;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  z-index: 10;
  white-space: nowrap;
}

.frame:hover .view-project-btn,
.frame.expanded .view-project-btn {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.view-project-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, 0) scale(1.03);
  transition-duration: 200ms;
}

@media (max-width: 480px) {
  .view-project-btn {
    padding: 10px 20px;
    font-size: 12px;
  }
}
