/* =========================================================
   4Tress Projects - Clean Frontend CSS
   Scoped only to .ft-page / .ft-wrap / .ft-single
========================================================= */

.ft-page,
.ft-wrap,
.ft-single {
  --ft-accent: #e11d48;
  --ft-dark: #101318;
  --ft-black: #080a0d;
  --ft-white: #ffffff;
  --ft-soft: #f4f5f7;
  --ft-border: rgba(11, 15, 21, 0.10);
  --ft-muted: rgba(11, 15, 21, 0.66);
  --ft-muted-2: rgba(11, 15, 21, 0.50);
  --ft-shadow: 0 10px 24px rgba(11, 15, 21, 0.08);
}

.ft-page *,
.ft-wrap *,
.ft-single * {
  box-sizing: border-box;
}

.ft-page h1::before,
.ft-page h1::after,
.ft-page h2::before,
.ft-page h2::after,
.ft-page h3::before,
.ft-page h3::after,
.ft-wrap h1::before,
.ft-wrap h1::after,
.ft-wrap h2::before,
.ft-wrap h2::after,
.ft-wrap h3::before,
.ft-wrap h3::after {
  content: none !important;
}

/* Containers */
.ft-container,
.ft-single-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

/* =========================================================
   Listing Pages - Hero / Intro / Cards
========================================================= */

.ft-hero {
  position: relative;
  padding: 82px 0 70px;
  background-color: var(--ft-black);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.ft-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.50), rgba(0,0,0,.25));
}

.ft-hero__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  color: #fff;
}

.ft-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #fff !important;
}

.ft-hero__kicker::after {
  content: "";
  width: 52px;
  height: 4px;
  border-radius: 99px;
  background: var(--ft-accent);
}

.ft-hero__title {
  margin: 0;
  font-size: 42px !important;
  line-height: 1.08;
  font-weight: 800 !important;
  letter-spacing: .2px !important;
  color: #fff !important;
  text-transform: uppercase;
}

.ft-hero__text {
  margin: 14px 0 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,.88) !important;
}

.ft-intro {
  background: #fff;
  padding: 44px 0;
}

.ft-intro__grid {
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: 30px;
  align-items: center;
}

.ft-label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--ft-accent);
}

.ft-intro__title {
  margin: 0 0 10px;
  font-size: 28px !important;
  line-height: 1.14;
  font-weight: 800 !important;
  color: var(--ft-dark) !important;
}

.ft-intro__desc {
  margin: 0;
  max-width: 540px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ft-muted);
}

.ft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  margin-top: 16px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--ft-accent);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.ft-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-left: 24px;
  border-left: 1px solid var(--ft-border);
}

.ft-stat {
  text-align: center;
  padding: 8px 6px;
}

.ft-stat__icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  color: var(--ft-accent);
}

.ft-stat__value {
  font-size: 21px;
  line-height: 1.1;
  font-weight: 850;
  color: var(--ft-dark);
}

.ft-stat__label {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ft-muted);
}

.ft-cards {
  background: var(--ft-soft);
  padding: 28px 0 60px;
}

/* =========================================================
   Cards Grid
========================================================= */

.ft-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 18px;
}

.ft-projects-grid {
  --ft-cols: 4;
  display: grid;
  grid-template-columns: repeat(var(--ft-cols), minmax(0, 1fr));
  gap: 18px;
}

.ft-card {
  background: #fff;
  border: 1px solid var(--ft-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--ft-shadow);
}

.ft-card-link {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

.ft-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e9eef5;
}

.ft-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ft-tag {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--ft-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.ft-tag--completed {
  background: rgba(11,15,21,.72);
}

.ft-card-body {
  padding: 14px;
}

.ft-card-title {
  margin: 0 0 10px !important;
  min-height: 34px;
  font-size: 13px !important;
  line-height: 1.22 !important;
  font-weight: 800 !important;
  letter-spacing: .2px !important;
  text-transform: uppercase;
  color: var(--ft-dark) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ft-card-meta {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.ft-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ft-muted);
}

.ft-meta-item::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  opacity: .9;
}

.ft-meta-item--location::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-4.4 7-11a7 7 0 0 0-14 0c0 6.6 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2'/%3E%3C/svg%3E");
}

.ft-meta-item--category::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 22h18'/%3E%3Cpath d='M6 22V4h8v18'/%3E%3Cpath d='M14 10h4v12'/%3E%3Cpath d='M9 8h2'/%3E%3Cpath d='M9 12h2'/%3E%3Cpath d='M9 16h2'/%3E%3C/svg%3E");
}

.ft-progress {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ft-border);
}

.ft-progress-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 750;
  color: var(--ft-muted);
}

.ft-progress-bar {
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(11,15,21,.10);
}

.ft-progress-bar > span {
  display: block;
  height: 100%;
  background: var(--ft-accent);
}

.ft-card-cta {
  display: inline-flex;
  margin-top: 12px;
  color: var(--ft-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .35px;
  text-transform: uppercase;
}

/* =========================================================
   Single Project
========================================================= */

.ft-single {
  background: #12161c;
  padding: 34px 0 54px;
}

.ft-single-container {
  max-width: 1220px;
}

.ft-single-top {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 26px;
  align-items: stretch;
}

.ft-single-media {
  order: 2;
  min-height: 560px;
  background: #0b0f15;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  overflow: hidden;
}

.ft-single-main-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.ft-single-panel {
  order: 1;
  background: #fff;
  border: 1px solid var(--ft-border);
  border-radius: 14px;
  padding: 28px;
  overflow: hidden;
}

.ft-single-heading,
.ft-gallery-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--ft-dark);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.ft-single-heading--spaced {
  margin-top: 24px;
}

.ft-mark {
  width: 10px;
  height: 10px;
  display: inline-block;
  flex: 0 0 10px;
  background: var(--ft-accent);
  transform: skewX(-18deg);
}

.ft-single-title {
  margin: 2px 0 18px !important;
  max-width: 520px;
  color: var(--ft-dark) !important;
  font-size: 23px !important;
  line-height: 1.18 !important;
  font-weight: 900 !important;
  letter-spacing: .25px !important;
  text-transform: uppercase;
}

.ft-single-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.ft-single-info {
  margin-bottom: 16px;
}

.ft-single-label {
  margin-bottom: 6px;
  color: var(--ft-muted-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.ft-single-value {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ft-dark);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 750;
}

.ft-single-value::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  opacity: .9;
}

.ft-single-value--location::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-4.4 7-11a7 7 0 0 0-14 0c0 6.6 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2'/%3E%3C/svg%3E");
}

.ft-single-value--category::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 22h18'/%3E%3Cpath d='M6 22V4h8v18'/%3E%3Cpath d='M14 10h4v12'/%3E%3Cpath d='M9 8h2'/%3E%3Cpath d='M9 12h2'/%3E%3Cpath d='M9 16h2'/%3E%3C/svg%3E");
}

.ft-single-progress-block {
  margin-top: 4px;
  margin-bottom: 18px;
}

.ft-single-progress-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--ft-muted);
  font-size: 12px;
  font-weight: 800;
}

.ft-single-progress-bar {
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(11,15,21,.10);
}

.ft-single-progress-bar > span {
  display: block;
  height: 100%;
  background: var(--ft-accent);
}

.ft-single-text {
  color: var(--ft-muted);
  font-size: 14px;
  line-height: 1.75;
}

.ft-single-text p {
  margin: 0 0 12px;
}

.ft-single-highlights {
  margin: 0;
  padding-left: 18px;
  color: var(--ft-muted);
  font-size: 14px;
  line-height: 1.7;
}

.ft-single-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ft-share-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--ft-border);
  border-radius: 12px;
  background: #fff;
  color: var(--ft-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  cursor: pointer;
  padding: 0;
}

.ft-share-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ft-share-icon--copy {
  color: var(--ft-accent);
}

/* Galleries */
.ft-single-gallery-section {
  margin-top: 34px;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: #0b0f15;
}

.ft-single-gallery-section .ft-gallery-heading {
  color: #fff;
}

.ft-gallery-heading--spaced {
  margin-top: 26px;
}

.ft-single-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ft-single-gallery-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

.ft-single-gallery-img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.ft-single-empty {
  color: rgba(255,255,255,.78);
  font-size: 14px;
}

.ft-single-empty--image {
  padding: 24px;
}

/* Related */
.ft-single-related {
  margin-top: 34px;
}

.ft-single-related .ft-gallery-heading {
  color: #fff;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1100px) {
  .ft-projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ft-single-top {
    grid-template-columns: 1fr;
  }

  .ft-single-media {
    order: 1;
    min-height: 420px;
  }

  .ft-single-panel {
    order: 2;
  }
}

@media (max-width: 980px) {
  .ft-intro__grid {
    grid-template-columns: 1fr;
  }

  .ft-stats {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 0;
    border-left: 0;
  }

  .ft-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ft-single-title {
    font-size: 20px !important;
  }

  .ft-single-info-grid {
    grid-template-columns: 1fr;
  }

  .ft-single-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .ft-hero__title {
    font-size: 32px !important;
  }

  .ft-intro__title {
    font-size: 24px !important;
  }

  .ft-projects-grid {
    grid-template-columns: 1fr;
  }

  .ft-single {
    padding-top: 24px;
  }

  .ft-single-panel {
    padding: 22px;
  }

  .ft-single-media {
    min-height: 300px;
  }

  .ft-single-title {
    font-size: 18px !important;
  }

  .ft-single-gallery-grid {
    grid-template-columns: 1fr;
  }

  .ft-single-gallery-img {
    height: 220px;
  }
}
/* Previous / Next Project */
.ft-single-nav {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding: 18px 0;
}

.ft-single-nav__item a {
  display: block;
  text-decoration: none !important;
  color: #fff !important;
}

.ft-single-nav__item--next {
  text-align: right;
}

.ft-single-nav__label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,.72);
  margin-bottom: 6px;
}

.ft-single-nav__title {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .ft-single-nav {
    grid-template-columns: 1fr;
  }

  .ft-single-nav__item--next {
    text-align: left;
  }
}