/* ==========================================================================
   Shared Styles
   ========================================================================== */

/* Fonts */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-700.woff2') format('woff2');
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #262626;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page Layout */
.page-wrapper {
  display: flex;
  justify-content: center;
}

.page {
  max-width: 1440px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

/* Breadcrumb */
.breadcrumb-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: #fff;
  padding: 24px 0;
  display: flex;
  justify-content: center;
}

.breadcrumb {
  max-width: 800px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}

.breadcrumb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #626262;
}

a.breadcrumb-pill:hover {
  background: #f1f1f1;
}

.breadcrumb-pill.active {
  color: #626262;
}

.breadcrumb-pill.active:hover {
  background: #f1f1f1;
}

.breadcrumb-pill img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.breadcrumb .chevron {
  color: #999;
  display: flex;
  align-items: center;
}

.breadcrumb .chevron img {
  width: 16px;
  height: 16px;
}

/* Meta Table */
.meta-table {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-header .meta-table {
  margin-top: 48px;
}

.meta-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.meta-label {
  width: 96px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: #949494;
  line-height: 25px;
}

.meta-value {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f4f4f4;
  font-size: 14px;
  font-weight: 500;
  color: #454545;
  line-height: normal;
}

.meta-tag img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.meta-tag a {
  color: #454545;
  text-decoration: none;
}

.meta-tag a:hover {
  text-decoration: underline;
}

.meta-tag.accent {
  background: #fff3e5;
  color: #a05c0c;
}

/* Content Column (case study pages) */
.content {
  max-width: 800px;
  width: 100%;
}

/* Project Header */
.project-header {
  padding-top: 160px;
}

.project-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  color: #262626;
}

.project-description {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #797979;
  margin-top: 8px;
}

/* Section Heading */
.section-heading {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: #262626;
  padding-top: 40px;
}

/* Sub Heading */
.sub-heading {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  color: #686868;
  padding-top: 40px;
}

/* Body Text */
.body-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #797979;
  padding-top: 16px;
}

/* Divider */
.divider {
  width: 100%;
  padding: 24px 0;
}

.divider hr {
  border: none;
  border-top: 1px solid #e6e6e6;
}

/* Image Containers */
.image-section {
  width: 100%;
}

.image-container {
  background: #f8f8f8;
  border-radius: 16px;
  padding: 20px;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
}

/* Plain image (no background, padding, or border) */
.image-plain {
  margin: 0 auto;
}

.image-plain img {
  width: 100%;
  height: auto;
  display: block;
}

/* Two-image stack */
.image-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.image-stack .image-container {
  flex: 1 0 0;
  min-width: 600px;
  max-width: 740px;
}

/* Three-image grid */
.image-grid-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  width: 100%;
}

.image-grid-3 .image-container {
  flex: 1 0 0;
  min-width: 380px;
  max-width: 464px;
}

/* Full-width + 3 grid */
.image-gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: 100%;
}

.image-gallery .image-container.full {
  width: 100%;
  max-width: 1440px;
}

/* Key Results Card */
.key-results {
  padding-top: 32px;
  padding-bottom: 16px;
}

.key-results-card {
  background: #fff8f0;
  border-radius: 16px;
  padding: 36px;
}

.key-results-header {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: #895f2f;
  padding-bottom: 8px;
}

.key-results-item {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  padding-top: 16px;
}

.key-results-number {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.key-results-number span {
  width: 16px;
  height: 16px;
  background: #895f2f;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.key-results-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #8b5f2c;
}

/* More Projects */
.more-projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.more-projects-title {
  font-size: 22px;
  font-weight: 600;
  color: #262626;
  line-height: 1.25;
}

.view-all-link {
  font-size: 16px;
  font-weight: 500;
  color: #2d6fe4;
  text-decoration: none;
}

.view-all-link:hover {
  text-decoration: underline;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
  padding-bottom: 64px;
}

/* Project Cards (shared between Home and case study pages) */
.project-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.project-card:hover {
  box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.5;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #303030;
}

.card-description {
  font-size: 14px;
  font-weight: 400;
  color: #9b9393;
}

.card-tags {
  display: flex;
  gap: 4px;
  align-items: center;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  color: #4e4e4e;
  line-height: normal;
}

.card-tag.work {
  background: #ffe4bc;
}

.card-tag.side-project {
  background: #cbe1ff;
}

.card-tag.music {
  background: #f0cbff;
}

.card-tag.year {
  background: #ececec;
}

.card-image {
  width: 100%;
  height: 240px;
  background: #f7f7f7;
  border: 1px solid #f3f3f3;
  border-radius: 6px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CTA Banner */
.cta-banner {
  max-width: 800px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: #fff8f0;
  border-radius: 16px;
}

.cta-text {
  font-size: 16px;
  font-weight: 500;
  color: #895f2f;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #c57b1a;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.cta-button img {
  width: 14px;
  height: 14px;
}

/* Content-width side-by-side images */
.image-pair {
  display: flex;
  gap: 24px;
}

.image-pair .image-container {
  flex: 1;
}

/* Composite image container - grey bg wrapping multiple images */
.image-composite {
  background: #f8f8f8;
  border-radius: 16px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
}

.image-composite img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
}

.image-composite .image-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.image-composite .image-col img {
  flex: 1;
  object-fit: cover;
}

/* Vertical composite - full-width image on top, columns below */
.image-composite-vertical {
  flex-direction: column;
}

.image-composite-vertical .image-row {
  display: flex;
  gap: 20px;
}

.image-composite-vertical .image-row .image-col {
  flex: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .image-stack .image-container {
    min-width: 100%;
  }
  .image-grid-3 .image-container {
    min-width: 100%;
  }
  .breadcrumb {
    padding: 0 24px;
  }
  .image-pair {
    flex-direction: column;
  }
  .image-composite {
    flex-direction: column;
  }
  .image-composite-vertical .image-row {
    flex-direction: column;
  }
}
