/* ==========================================================================
   FutureBlock Site System — shared across all pages
   Load AFTER style.min.css / custom.css, BEFORE polish.css (homepage)
   ========================================================================== */

.site {
  overflow-x: hidden;
  --fb-nav-height: 80px;
  --fb-red: #ff3b30;
  --fb-red-bright: #ff6060;
  --fb-bg: #000000;
  --fb-bg-soft: #0a0a0a;
  --fb-hero-bg: #050505;
  --fb-section-pad: 72px;
  --fb-section-pad-mobile: 48px;
  --fb-container: 1200px;
  background-color: var(--fb-bg);
  color: rgba(255, 255, 255, 0.88);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

@media (max-width: 991px) {
  .site { --fb-nav-height: 60px; }
}

.site .container,
.site .container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

/* ---- Logo ---------------------------------------------------------------- */
.site .logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  float: none !important;
  position: relative;
  z-index: 5;
}

.site .logo-wrap a {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
}

.site .site-logo,
.site .footer-logo-img {
  width: auto;
  height: 48px;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

@media (max-width: 991px) {
  .site .site-logo,
  .site .footer-logo-img {
    height: 42px;
    max-width: 170px;
  }
}

/* ---- Header / Nav -------------------------------------------------------- */
.site header.nav {
  z-index: 300;
}

.site .nav__holder {
  padding-top: 0;
  padding-bottom: 0;
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site .nav__holder--scrolled {
  background: rgba(5, 5, 5, 0.98);
  border-bottom-color: rgba(255, 59, 48, 0.12);
}

.site .nav__icon-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 6;
}

.site .nav__icon-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.site .nav__icon-toggle.is-active .nav__icon-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site .nav__icon-toggle.is-active .nav__icon-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site .nav__icon-toggle.is-active .nav__icon-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site .nav__menu > li > a {
  transition: color 0.2s ease;
}

.site .nav__menu > li > a.active,
.site .nav__menu > li > a:hover,
.site .nav__dropdown-link.active {
  color: var(--fb-red-bright) !important;
}

@media (min-width: 992px) {
  .site header.nav,
  .site .nav--sticky {
    height: 80px !important;
    min-height: 80px;
  }

  .site .container-semi-fluid {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 28px;
    padding-right: 28px;
  }

  .site header .flex-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 80px;
  }

  .site .nav__header {
    flex: 0 0 auto;
    width: auto;
    overflow: visible;
    display: block;
  }

  .site .nav__wrap {
    flex: 1 1 auto;
    display: flex !important;
    justify-content: center;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    height: auto !important;
    overflow: visible !important;
  }

  .site .nav__overlay-close,
  .site .nav__overlay-backdrop {
    display: none !important;
  }

  .site .nav__menu {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
  }

  .site .nav__menu > li > a {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    border-radius: 4px;
    line-height: 1.3 !important;
    height: auto;
  }

  .site .nav-link--services::after {
    content: "";
    display: inline-block;
    margin-left: 8px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
    opacity: 0.85;
  }

  .site .nav__dropdown .nav__dropdown-trigger {
    display: none;
  }

  .site .nav__dropdown-menu {
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
    padding: 8px 0;
    background-color: #141414;
  }

  .site .nav__dropdown-menu > li > a {
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .site .nav__dropdown-menu > li > a:hover {
    color: var(--fb-red-bright) !important;
    background: rgba(255, 255, 255, 0.04);
  }

  .site .nav__actions {
    flex: 0 0 auto;
    display: flex !important;
    align-items: center;
  }

  .site .nav__mobile-cta {
    display: none !important;
  }

  .site .nav__cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 11px 24px;
    border: none;
    border-radius: 999px;
    background: var(--fb-red);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 59, 48, 0.25);
  }

  .site .nav__cta-btn:hover {
    background: #e83228;
    transform: translateY(-1px);
  }
}

@media (max-width: 991px) {
  .site .nav__header {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    width: 100%;
    min-height: 60px;
  }

  .site .nav__icon-toggle {
    display: flex;
    grid-column: 1;
    justify-self: start;
  }

  .site .logo-wrap {
    grid-column: 2;
    justify-self: center;
    max-width: calc(100% - 88px);
  }

  .site .logo-wrap a {
    justify-content: center;
    height: 60px !important;
  }

  .site .nav__actions {
    display: none !important;
  }

  .site .nav__overlay-backdrop {
    position: fixed;
    inset: 0;
    top: var(--fb-nav-height);
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 298;
  }

  .site .nav__overlay-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .site .nav__wrap {
    position: fixed;
    top: var(--fb-nav-height);
    right: 0;
    width: min(100%, 360px);
    height: calc(100vh - var(--fb-nav-height));
    height: calc(100dvh - var(--fb-nav-height));
    background: #0a0a0a;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 20px 32px;
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
    z-index: 299;
    display: block !important;
  }

  .site .nav__wrap.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .site .nav__overlay-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    margin-bottom: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  .site .nav__menu {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .site .nav__menu > li > a {
    display: block;
    padding: 0 48px 0 4px;
    line-height: 52px;
    height: 52px;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
  }

  .site .nav__dropdown-trigger {
    position: absolute;
    right: 0;
    top: 0;
    width: 48px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease;
  }

  .site .nav__dropdown-trigger.active {
    transform: rotate(180deg);
  }

  .site .nav__dropdown-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.03);
  }

  .site .nav__dropdown-trigger.active + .nav__dropdown-menu {
    display: block;
  }

  .site .nav__dropdown-menu > li > a {
    display: block;
    padding: 0 16px 0 24px !important;
    line-height: 46px;
    height: 46px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .site .nav__mobile-cta {
    padding: 20px 4px 8px;
  }

  .site .nav__cta-btn--mobile {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    border: none;
    border-radius: 999px;
    background: var(--fb-red);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }

  .site.nav-open {
    overflow: hidden;
  }
}

/* ---- Shared hero (homepage + service pages) ------------------------------- */
.site #Home.fb-hero {
  padding: 0 !important;
  margin: 0;
  overflow: hidden;
  background: var(--fb-hero-bg) !important;
}

.site .fb-hero__section {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: calc(var(--fb-nav-height) + 48px) 0 72px;
  background: var(--fb-hero-bg);
  overflow: hidden;
}

.site.page-home .fb-hero__section {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 96px;
}

.site.page-service .fb-hero__section {
  min-height: min(85vh, 720px);
}

.site .fv2--hero-section-2::before,
.site .fv2--hero-section-2::after {
  display: none !important;
}

.site .fb-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.site .fb-hero__mesh {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(ellipse 55% 45% at 18% 38%, rgba(140, 0, 0, 0.32) 0%, transparent 58%),
    radial-gradient(ellipse 48% 55% at 72% 62%, rgba(100, 0, 0, 0.22) 0%, transparent 52%),
    radial-gradient(ellipse 42% 38% at 55% 18%, rgba(180, 30, 30, 0.14) 0%, transparent 48%),
    radial-gradient(ellipse 60% 50% at 90% 85%, rgba(80, 0, 0, 0.18) 0%, transparent 55%);
  animation: fbMeshDrift 26s ease-in-out infinite alternate;
}

.site .fb-hero__blueprint {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: fbBlueprintDrift 24s linear infinite;
}

.site .fb-hero__bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
  animation: fbBloomDrift 30s ease-in-out infinite alternate;
}

.site .fb-hero__bloom--1 {
  width: 520px;
  height: 520px;
  top: 10%;
  right: 8%;
  background: rgba(255, 59, 48, 0.14);
}

.site .fb-hero__bloom--2 {
  width: 400px;
  height: 400px;
  bottom: 8%;
  left: 35%;
  background: rgba(120, 0, 0, 0.2);
  animation-delay: -15s;
}

@keyframes fbMeshDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2.5%, 1.5%) scale(1.04); }
}

@keyframes fbBlueprintDrift {
  0% { background-position: 0 0; }
  100% { background-position: 72px 36px; }
}

@keyframes fbBloomDrift {
  0% { transform: translate(0, 0); opacity: 0.22; }
  100% { transform: translate(3%, -2%); opacity: 0.32; }
}

.site .fb-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(102deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 45%, transparent 75%);
}

.site.page-home .fb-hero__scrim {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 38%, rgba(0, 0, 0, 0.18) 52%, transparent 62%);
}

.site .fb-hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--fb-container);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.site .fb-hero__copy {
  max-width: 620px;
  text-align: left;
}

.site .fb-hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fb-red-bright);
  border: 1px solid rgba(255, 96, 96, 0.35);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 28px;
  background: rgba(255, 59, 48, 0.06);
}

.site .fb-hero__headline {
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site .fb-hero__line {
  display: block;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.site .fb-hero__line--regular {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

.site .fb-hero__line--bold {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
}

.site .fb-hero__subheading {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 16px;
}

.site .fb-hero__description {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  max-width: 540px;
}

@media (max-width: 991px) {
  .site .fb-hero__section {
    min-height: auto !important;
    padding: calc(var(--fb-nav-height) + 32px) 0 56px;
  }

  .site .fb-hero__mesh,
  .site .fb-hero__bloom {
    animation: none;
  }

  .site .fb-hero__blueprint {
    animation: none;
    opacity: 0.55;
  }

  .site .fb-hero__container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site .fb-hero__scrim {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 100%) !important;
  }
}

/* ---- Section rhythm + eyebrow -------------------------------------------- */
.site .fb-section,
.site.page-service section.intro,
.site.page-service section.animated-cards,
.site.page-service section#about,
.site.page-service section.services,
.site.page-service section.bg-black,
.site.page-service .section.bg-black {
  padding-top: var(--fb-section-pad) !important;
  padding-bottom: var(--fb-section-pad) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.site .section-subtitle--line,
.site .fb-eyebrow {
  color: var(--fb-red-bright) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  margin-bottom: 16px !important;
}

.site .section-subtitle--line::before {
  background-color: var(--fb-red) !important;
  height: 4px !important;
  width: 48px !important;
}

.site .section-title,
.site .fb-section-title {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 16px;
}

/* ---- Service page: split sections ---------------------------------------- */
.site.page-service section.intro .row,
.site.page-service section#about .row,
.site.page-service .fb-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.site.page-service section.intro .row > [class*="col-"],
.site.page-service section#about .row > [class*="col-"] {
  width: 100%;
  max-width: none;
  flex: none;
  margin: 0 !important;
  padding: 0 !important;
}

.site.page-service section.intro img,
.site.page-service section#about img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 96, 96, 0.18);
  box-shadow: 0 0 40px rgba(255, 59, 48, 0.08);
  object-fit: cover;
}

.site.page-service section#about .row {
  direction: rtl;
}

.site.page-service section#about .row > * {
  direction: ltr;
}

.site.page-service .feature-work-body,
.site.page-service section#about p,
.site.page-service .intro p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  max-width: 60ch;
}

/* ---- Service page: card grids -------------------------------------------- */
.site.page-service .card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.site.page-service .animated-card {
  height: 100%;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site.page-service .animated-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 96, 96, 0.35);
  box-shadow: 0 8px 32px rgba(255, 59, 48, 0.12);
}

.site.page-service .card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 96, 96, 0.2);
  color: var(--fb-red-bright);
  margin-bottom: 16px;
}

.site.page-service .card-icon.floating {
  animation: none !important;
}

.site.page-service .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.site.page-service .card-description {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 991px) {
  .site .fb-section,
  .site.page-service section.intro,
  .site.page-service section.animated-cards,
  .site.page-service section#about,
  .site.page-service section.services {
    padding-top: var(--fb-section-pad-mobile) !important;
    padding-bottom: var(--fb-section-pad-mobile) !important;
  }

  .site.page-service section.intro .row,
  .site.page-service section#about .row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site.page-service section#about .row {
    direction: ltr;
  }

  .site.page-service section#about img,
  .site.page-service section.intro img {
    max-height: 320px;
    object-fit: cover;
  }

  .site.page-service .card-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .site.page-service .card-container {
    grid-template-columns: 1fr;
  }
}

/* ---- Footer -------------------------------------------------------------- */
.site .site-footer {
  background: var(--fb-bg-soft) !important;
  padding-top: 64px;
}

.site .site-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.2fr 0.7fr;
  gap: 40px 32px;
  align-items: start;
}

.site .site-footer__tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
  margin: 16px 0 0;
  max-width: 22ch;
}

.site .services-title,
.site .site-footer__contact-title,
.site .site-footer__social-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

.site .site-footer__contact-title {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--fb-red-bright);
}

.site .services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.site .service-item {
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 4px 0;
}

.site .service-item a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site .service-item a:hover {
  color: var(--fb-red-bright);
}

.site .site-footer .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}

.site .site-footer .contact-item i {
  color: var(--fb-red-bright);
  margin-top: 3px;
  flex-shrink: 0;
}

.site .site-footer .contact-item a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.site .site-footer__cta {
  margin-top: 16px;
}

.site .site-footer__social-links {
  display: flex;
  gap: 12px;
}

.site .site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site .site-footer__social-link:hover {
  color: var(--fb-red-bright);
  border-color: rgba(255, 96, 96, 0.4);
  background: rgba(255, 59, 48, 0.08);
}

.site .copyright-wrap {
  margin-top: 48px;
  padding: 20px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
}

.site .copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 991px) {
  .site .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .site .site-footer__tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .site .services-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 360px;
    margin: 0 auto;
    text-align: left;
  }

  .site .site-footer .contact-item {
    justify-content: center;
  }

  .site .site-footer__social-links {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site .fb-hero__mesh,
  .site .fb-hero__blueprint,
  .site .fb-hero__bloom {
    animation: none !important;
  }
}
