/* R. Scott Davis Photography - Projects Listing Page */
/* Pixel-perfect match to Figma node 917:6952 */

/* Design Tokens */
:root {
  --bg-dark-header: #121212;
  --bg-dark-body: #323232;
  --brand-yellow: #ebe545;
  --text-primary-light: #f9f9f9;
  --text-secondary: #8e8e8e;
  --text-black: #000000;

  --font-heading: 'NB Architekt Std', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-label: 'NB Typewriter Pro', monospace;
}

/* Projects Head Section */
.projects-head {
  background-color: var(--bg-dark-header);
  padding: 116px 80px 48px 80px;
}

.projects-head-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Breadcrumb */
.projects-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
}

.projects-breadcrumb .arrow {
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 16px;
  line-height: normal;
}

.projects-breadcrumb .breadcrumb-text {
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 16px;
  line-height: 20px;
}

/* Projects Title */
.projects-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 48px;
  color: var(--brand-yellow);
  line-height: 58px;
  margin: 0;
}

/* Hero Section */
.projects-hero {
  position: relative;
  overflow: hidden;
  height: 600px;
  width: 100%;
}

.projects-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.projects-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  height: 100%;
  padding: 80px;
}

/* Hero Text Container */
.projects-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 1306px;
}

/* Hero Title */
.projects-hero-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 72px;
  color: var(--text-primary-light);
  line-height: 90px;
  margin: 0;
}

/* Hero Body (White Content Box) */
.projects-hero-body {
  background-color: var(--text-primary-light);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.projects-hero-body p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--text-black);
  line-height: 20px;
  margin: 0;
}

/* Explore More Button */
.projects-hero-btn {
  background-color: var(--brand-yellow);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 20px;
  color: var(--text-black);
  border: none;
  padding: 8px 16px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.projects-hero-btn:hover {
  transform: translateX(4px);
}

/* Projects Grid Section */
.projects-grid {
  background-color: var(--bg-dark-body);
  padding: 120px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Project Card */
.project-card {
  position: relative;
  aspect-ratio: 400 / 550;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 32px;
  cursor: pointer;
  text-decoration: none;
}

.project-card img.project-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(100%);
}

/* Gradient Overlay - dual gradient matching Figma exactly */
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgb(0, 0, 0) 2.6364%, rgba(0, 0, 0, 0) 13.818%),
              linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);
  pointer-events: none;
}

/* Arrow Icon */
.project-card-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--text-primary-light);
}

.project-card-arrow svg {
  width: 48px;
  height: 48px;
}

/* Card Info Overlay */
.project-card-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 305px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(20px);
}

.project-card:hover .project-card-info {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover .project-card-arrow {
  opacity: 1;
}

/* Card Title */
.project-card-info h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 24px;
  color: var(--brand-yellow);
  line-height: 28px;
  margin: 0;
}

/* Card Description */
.project-card-info p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  color: var(--text-primary-light);
  line-height: normal;
  margin: 0;
}

/* Responsive Design */

/* Tablet: 1024px */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 60px 60px;
  }

  .projects-hero-title {
    font-size: 56px;
    line-height: 70px;
  }

  .projects-head {
    padding: 116px 60px 48px 60px;
  }

  .projects-hero-content {
    padding: 60px;
  }
}

/* Mobile: 768px */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 40px 40px;
  }

  .projects-hero {
    height: 400px;
  }

  .projects-hero-title {
    font-size: 40px;
    line-height: 50px;
  }

  .projects-head {
    padding: 80px 40px 40px 40px;
  }

  .projects-hero-content {
    padding: 40px;
  }

  .projects-title {
    font-size: 36px;
    line-height: 44px;
  }

  .project-card-info {
    opacity: 1;
    transform: translateY(0);
  }

  .project-card-arrow {
    opacity: 1;
  }
}

/* Small Mobile: 480px */
@media (max-width: 480px) {
  .projects-hero-title {
    font-size: 32px;
    line-height: 40px;
  }

  .projects-head {
    padding: 60px 24px 32px 24px;
  }

  .projects-hero-content {
    padding: 24px;
  }

  .projects-title {
    font-size: 28px;
    line-height: 34px;
  }

  .projects-hero-body {
    padding: 16px;
  }

  .project-card-info h3 {
    font-size: 20px;
    line-height: 24px;
  }

  .project-card-info p {
    font-size: 14px;
  }
}
