/* ========================================
   Site custom styles
   ======================================== */

/* --- Logos --- */
.header-1 .header-main .header-left .logo img,
.header-1 .header-main .header-left .header-logo img,
.header-1 .header-main .header-left .header-logo-2 img {
  width: 160px;
  height: auto;
  max-width: 100%;
  display: block;
}

.offcanvas__logo img {
  width: 140px;
  height: auto;
  display: block;
}

.footer-logo img {
  width: 180px;
  height: auto;
  max-width: 100%;
  display: block;
}

.footer-bottom-wrapper.style-3 {
  justify-content: center;
  text-align: center;
}

.footer-bottom-wrapper.style-3 p {
  margin: 0;
  width: 100%;
}

@media (max-width: 575px) {
  .header-1 .header-main .header-left .logo img,
  .header-1 .header-main .header-left .header-logo img,
  .header-1 .header-main .header-left .header-logo-2 img {
    width: 130px;
  }

  .footer-logo img {
    width: 150px;
  }
}

/* --- Shared: marquees --- */
.tgf-social-marquee .marquee,
.tgf-studio-marquee .marquee {
  margin-bottom: 0;
}

/* --- Shared: industry cards & founder callout --- */
.industry-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  height: 100%;
  border-left: 4px solid var(--primary);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.industry-card h4 {
  margin-bottom: 8px;
}

.industry-card .tagline {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.industry-card .clients {
  font-size: 0.9rem;
  color: #666;
  margin-top: 15px;
  margin-bottom: 0;
}

.industry-card .clients strong {
  color: #333;
}

.founder-callout {
  margin-top: 30px;
  padding: 24px 28px;
  background: #F2F5F7;
  border-radius: 10px;
  border-left: 4px solid var(--primary);
}

.founder-callout a {
  color: var(--primary);
  font-weight: 600;
}

/* --- Shared: equal-height service cards --- */
#services .row.g-4 > [class*="col-"] {
  display: flex;
}

#services .service-box-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

#services .service-box-item .content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#services .service-box-item .content p {
  flex: 1;
  margin-bottom: 0;
}

/* --- Case studies --- */
.case-study-section {
  background: #fff;
  padding-top: 80px;
  padding-bottom: 80px;
}

.case-study-section:nth-of-type(even) {
  background: #F2F5F7;
}

.case-study-section .section-title {
  margin-bottom: 24px;
}

.case-study-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.case-study-logo {
  max-height: 72px;
  width: auto;
  max-width: min(280px, 80%);
  object-fit: contain;
}

.case-study-project-meta {
  text-align: center;
  color: #666;
  margin: 0 0 36px;
  font-size: 1rem;
}

.case-study-body {
  max-width: 960px;
  margin: 0 auto;
}

.case-study-block {
  background: #fff;
  border-radius: 12px;
  padding: 28px 30px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.case-study-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 36px;
}

.case-study-split-item h4,
.case-study-block h4 {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.case-study-block p {
  margin-bottom: 0;
  color: #555;
  line-height: 1.7;
}

.case-study-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-study-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: #444;
  line-height: 1.6;
}

.case-study-list li:last-child {
  margin-bottom: 0;
}

.case-study-list li i {
  color: var(--primary);
  margin-top: 4px;
  flex-shrink: 0;
}

.case-study-budget {
  margin-top: 18px;
  padding: 16px 20px;
  background: #F2F5F7;
  border-radius: 10px;
  border-left: 4px solid var(--primary);
  font-weight: 600;
  color: #333;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.case-study-left-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.case-study-results-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.case-study-results-wrap .case-study-stats {
  flex: 1;
}

.case-study-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 4px;
}

.case-study-stat {
  background: #F2F5F7;
  border-radius: 10px;
  padding: 18px 20px;
  border-left: 3px solid var(--primary);
}

.case-study-section:nth-of-type(even) .case-study-stat {
  background: #fff;
}

.case-study-stat h3 {
  color: var(--primary);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.2;
}

.case-study-stat h5 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.case-study-stat p {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 991px) {
  .case-study-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

@media (max-width: 767px) {
  .case-study-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case-study-block {
    padding: 22px 24px;
  }
}

@media (max-width: 575px) {
  .case-study-stats {
    grid-template-columns: 1fr;
  }
}

/* --- Work / Real Estate gallery --- */
.tgf-work-gallery .col-lg-4,
.tgf-work-gallery .col-md-6 {
  display: flex;
}

.tgf-gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 16 / 9;
  text-decoration: none;
  outline: none;
  background: #111;
}

.work-portfolio-section .tgf-work-gallery:not(.tgf-work-videos) .tgf-gallery-item {
  aspect-ratio: 4 / 3;
}

.tgf-gallery-item figure {
  margin: 0;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.tgf-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.5s ease;
  will-change: transform;
}

.tgf-gallery-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.05) 0%,
    rgba(10, 10, 10, 0.72) 100%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.tgf-gallery-hover::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(253, 177, 29, 0);
  border-radius: 8px;
  transition: border-color 0.45s ease, inset 0.45s ease;
}

.tgf-gallery-hover i {
  font-size: 28px;
  color: #fff;
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.35s ease;
  z-index: 1;
}

.tgf-gallery-item:hover img,
.tgf-gallery-item:focus-visible img {
  transform: scale(1.09);
  filter: brightness(0.88);
}

.tgf-gallery-item:hover .tgf-gallery-hover,
.tgf-gallery-item:focus-visible .tgf-gallery-hover {
  opacity: 1;
}

.tgf-gallery-item:hover .tgf-gallery-hover::before,
.tgf-gallery-item:focus-visible .tgf-gallery-hover::before {
  border-color: rgba(253, 177, 29, 0.55);
  inset: 10px;
}

.tgf-gallery-item:hover .tgf-gallery-hover i,
.tgf-gallery-item:focus-visible .tgf-gallery-hover i {
  transform: scale(1);
  opacity: 1;
}

.tgf-gallery-item:focus-visible {
  box-shadow: 0 0 0 3px rgba(253, 177, 29, 0.45);
}

.tgf-gallery-item.is-video .tgf-gallery-hover {
  opacity: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.12) 0%,
    rgba(10, 10, 10, 0.55) 100%
  );
}

.tgf-gallery-item.is-video .tgf-gallery-hover i {
  transform: scale(1);
  opacity: 1;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.tgf-gallery-item.is-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.work-local-video-modal {
  position: relative;
  width: min(920px, 92vw);
  margin: 0 auto;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.work-local-video-modal video {
  display: block;
  width: 100%;
  max-height: 80vh;
  background: #000;
}

.mfp-fade.mfp-bg {
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
  opacity: 0.9;
}

.mfp-fade.mfp-bg.mfp-removing {
  opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
  opacity: 0;
}

/* --- Our Work category filter --- */
.work-filter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 36px;
}

.work-filter-btn {
  appearance: none;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #fff;
  color: #222;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    transform 0.25s ease;
}

.work-filter-btn:hover {
  border-color: rgba(17, 17, 17, 0.28);
  transform: translateY(-1px);
}

.work-filter-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #111;
}

.work-filter-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(253, 177, 29, 0.35);
}

.work-filter-item {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.work-filter-item.is-hidden {
  display: none !important;
}

#workFilterGrid .tgf-gallery-item {
  aspect-ratio: 4 / 5;
}

.gallery-group {
  margin-bottom: 28px;
}

.gallery-group:last-child {
  margin-bottom: 0;
}

.gallery-group-title {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin: 0 0 18px;
}

.gallery-empty {
  color: #777;
  margin: 0;
  font-size: 0.95rem;
}

.mfp-title {
  display: none;
}

.mfp-bg {
  background: rgba(8, 8, 8, 0.94);
  opacity: 1;
}

.mfp-figure::after {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.mfp-arrow {
  opacity: 0.85;
}

.mfp-arrow:hover {
  opacity: 1;
}

/* Mobile submenu expand button */
.mean-container .mean-nav ul li a.mean-expand {
  width: 40px !important;
  height: 44px !important;
  line-height: 44px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin-top: 0 !important;
  padding: 0 !important;
  right: 0;
  top: 0;
  z-index: 5;
  cursor: pointer;
}

.mean-container .mean-nav ul li > a.mean-expand i {
  display: inline-block !important;
  font-size: 16px;
  pointer-events: none;
}

.work-portfolio-section {
  background: #fff;
}

.work-portfolio-section:nth-of-type(even) {
  background: #F2F5F7;
}

@media (max-width: 575px) {
  .work-filter-nav {
    gap: 8px;
    margin-bottom: 28px;
  }

  .work-filter-btn {
    font-size: 13px;
    padding: 10px 14px;
  }
}

/* --- Services listing pages (studio + social) --- */
.tgf-services-section {
  background: #F2F5F7;
  overflow: hidden;
}

.tgf-services-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tgf-service-row {
  position: relative;
  padding: 64px 0;
  z-index: 1;
}

.tgf-service-row:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), transparent);
  transform: translateX(-50%);
}

.tgf-service-row__watermark {
  position: absolute;
  font-size: clamp(120px, 14vw, 200px);
  font-weight: 800;
  color: rgba(0, 0, 0, 0.04);
  line-height: 1;
  z-index: 0;
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
}

.tgf-service-row:nth-child(odd) .tgf-service-row__watermark {
  right: -10px;
}

.tgf-service-row:nth-child(even) .tgf-service-row__watermark {
  left: -10px;
}

.tgf-service-row__grid {
  position: relative;
  z-index: 2;
}

.tgf-service-row:nth-child(odd) .tgf-service-row__content {
  order: 1;
  padding-right: 24px;
}

.tgf-service-row:nth-child(odd) .tgf-service-row__panel {
  order: 2;
  padding-left: 24px;
}

.tgf-service-row:nth-child(even) .tgf-service-row__content {
  order: 2;
  padding-left: 24px;
}

.tgf-service-row:nth-child(even) .tgf-service-row__panel {
  order: 1;
  padding-right: 24px;
}

.tgf-service-row:nth-child(odd) .tgf-service-row__content .tgf-service-row__meta,
.tgf-service-row:nth-child(odd) .tgf-service-row__desc {
  text-align: left;
}

.tgf-service-row:nth-child(even) .tgf-service-row__content .tgf-service-row__meta,
.tgf-service-row:nth-child(even) .tgf-service-row__desc {
  text-align: right;
}

.tgf-service-row:nth-child(even) .tgf-service-row__meta {
  flex-direction: row-reverse;
}

.tgf-service-row:nth-child(even) .service-keywords {
  text-align: right;
}

.tgf-service-row__meta {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.tgf-service-row__icon {
  width: 72px;
  height: 72px;
  min-width: 72px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.tgf-service-row__icon img {
  width: 32px;
}

.tgf-service-row__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.tgf-service-row__content h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.25;
}

.tgf-service-row__content .tagline {
  color: var(--primary);
  font-weight: 600;
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.tgf-service-row__desc {
  margin: 0;
  line-height: 1.8;
  color: #555;
  font-size: 1.02rem;
}

.tgf-service-row__deliverables {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 36px 34px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
  position: relative;
}

.tgf-service-row:nth-child(odd) .tgf-service-row__deliverables {
  border-left: 4px solid var(--primary);
}

.tgf-service-row:nth-child(even) .tgf-service-row__deliverables {
  border-right: 4px solid var(--primary);
}

.tgf-service-row__deliverables h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tgf-service-row__deliverables ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tgf-service-row__deliverables ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.tgf-service-row__deliverables ul li:last-child {
  margin-bottom: 0;
}

.tgf-service-row__deliverables ul li i {
  color: var(--primary);
  margin-top: 4px;
  flex-shrink: 0;
}

.service-keywords {
  font-size: 0.85rem;
  color: #888;
  margin-top: 20px;
  margin-bottom: 0;
}

.tgf-services-cta {
  text-align: center;
  margin-top: 56px;
  padding: 48px 40px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
  .tgf-service-row {
    padding: 48px 0;
  }

  .tgf-service-row:nth-child(odd) .tgf-service-row__content,
  .tgf-service-row:nth-child(odd) .tgf-service-row__panel,
  .tgf-service-row:nth-child(even) .tgf-service-row__content,
  .tgf-service-row:nth-child(even) .tgf-service-row__panel {
    order: unset;
    padding-left: 0;
    padding-right: 0;
  }

  .tgf-service-row:nth-child(even) .tgf-service-row__content .tgf-service-row__meta,
  .tgf-service-row:nth-child(even) .tgf-service-row__content .tgf-service-row__desc,
  .tgf-service-row:nth-child(even) .service-keywords {
    text-align: left;
  }

  .tgf-service-row:nth-child(even) .tgf-service-row__meta {
    flex-direction: row;
  }

  .tgf-service-row__panel {
    margin-top: 8px;
  }

  .tgf-service-row:nth-child(even) .tgf-service-row__deliverables {
    border-right: none;
    border-left: 4px solid var(--primary);
  }
}

@media (max-width: 575px) {
  .tgf-service-row__deliverables {
    padding: 28px 22px;
  }

  .tgf-service-row__meta {
    flex-direction: column;
    gap: 16px;
  }

  .tgf-service-row:nth-child(even) .tgf-service-row__meta {
    flex-direction: column;
  }
}

/* --- About: What We Believe --- */
.believe-card {
  background: #F2F5F7;
  border-radius: 12px;
  padding: 32px 28px;
  height: 100%;
  border-left: 4px solid var(--primary);
}

.believe-card h5 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 16px;
}

.believe-card p {
  color: #555;
  font-size: 1.02rem;
  line-height: 1.8;
  margin: 0;
  font-style: italic;
}

#what-we-believe {
  background: #fff;
}

#why-choose-us {
  background: #F2F5F7;
}

#why-choose-us [style*="background: #F2F5F7"] {
  background: #fff !important;
}
